Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Aug 20, 2024
1 parent b26c8cf commit 13dab54
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ pub(crate) trait ByteExt {
/// `[ \r\n\t]`
fn is_space(&self) -> bool;

fn is_quote(&self) -> bool;

/// Checks if a byte is an ASCII char.
///
/// `[A-Za-z]`
fn is_letter(&self) -> bool;

/// Checks if a byte is an ASCII ident char.
fn is_ascii_ident(&self) -> bool;
}
Expand All @@ -54,16 +47,6 @@ impl ByteExt for u8 {
matches!(*self, b' ' | b'\t' | b'\n' | b'\r')
}

#[inline]
fn is_quote(&self) -> bool {
matches!(*self, b'\'' | b'"')
}

#[inline]
fn is_letter(&self) -> bool {
matches!(*self, b'A'..=b'Z' | b'a'..=b'z')
}

#[inline]
fn is_ascii_ident(&self) -> bool {
matches!(*self, b'0'..=b'9' | b'A'..=b'Z' | b'a'..=b'z' | b'-' | b'_')
Expand Down

0 comments on commit 13dab54

Please sign in to comment.