Skip to content

Commit c69e014

Browse files
authored
Remove unreliable print function. (#2220)
1 parent 473224f commit c69e014

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

cmd/soroban-cli/src/commands/snapshot/create.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ impl Cmd {
277277
.map_err(Error::ReadOpeningCachedBucket)?;
278278

279279
let message = format!("Searching bucket {i} {bucket}");
280-
print.search(format!("{message}…"));
280+
print.searchln(format!("{message}…"));
281281

282282
if let Ok(metadata) = file.metadata() {
283-
print.clear_line();
283+
print.clear_previous_line();
284284
print.searchln(format!("{message} ({})", ByteSize(metadata.len())));
285285
}
286286

cmd/soroban-cli/src/print.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ impl Print {
3131
}
3232
}
3333

34-
pub fn clear_line(&self) {
35-
if cfg!(windows) {
36-
eprint!("\r");
37-
} else {
38-
eprint!("\r\x1b[2K");
39-
}
40-
}
41-
4234
pub fn clear_previous_line(&self) {
4335
if !self.quiet {
4436
if cfg!(windows) {

0 commit comments

Comments
 (0)