Skip to content

Commit

Permalink
remove the clear
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rms committed Dec 19, 2024
1 parent 822da8e commit be0f93f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rust/src/sans_io/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,6 @@ impl LinearReader {
self.file_data.end += written;
}

if self.file_data.len() == 0 {
self.file_data.clear();
}

/// Macros for loading data into the reader. These return early with NeedMore(n) if
/// more data is needed.
///
Expand Down

0 comments on commit be0f93f

Please sign in to comment.