From f85e5aac64784deac75950a1307f2ca802ad6765 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 8 Jul 2021 19:37:38 +0200 Subject: URL special case for line comments --- src/parse/scanner.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/parse/scanner.rs') diff --git a/src/parse/scanner.rs b/src/parse/scanner.rs index 1a0e3045..fad44e89 100644 --- a/src/parse/scanner.rs +++ b/src/parse/scanner.rs @@ -96,11 +96,6 @@ impl<'s> Scanner<'s> { self.peek().map(f).unwrap_or(false) } - /// Checks whether the remaining source starts with the given string. - pub fn starts_with(&self, string: &str) -> bool { - self.rest().starts_with(string) - } - /// The previous index in the source string. pub fn last_index(&self) -> usize { self.eaten() -- cgit v1.2.3