diff options
Diffstat (limited to 'src/parse/mod.rs')
| -rw-r--r-- | src/parse/mod.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 9d3164e..0322c39 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -1,4 +1,4 @@ -use crate::{BString, run::CommandKind}; +use crate::BString; #[cfg(test)] mod test; @@ -920,12 +920,6 @@ struct SpaceStats { cr: u32, } -impl SpaceStats { - fn is_empty(&self) -> bool { - self.space == 0 && self.tab == 0 && self.lf == 0 && self.cr == 0 - } -} - impl<'a> Cursor<'a> { fn new(buf: &'a [u8], mode: ParseMode) -> Self { Self { @@ -1008,7 +1002,7 @@ impl<'a> Cursor<'a> { } /// returns true if the next thing in the buffer is whitespace (including at least one newline) - /// + /// /// does not modify the buffer fn whitespace_newline(&mut self) -> bool { let x = self.buf; |
