summaryrefslogtreecommitdiff
path: root/src/parse/scanner.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/scanner.rs')
-rw-r--r--src/parse/scanner.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/parse/scanner.rs b/src/parse/scanner.rs
index c4ba2cfd..69ad2138 100644
--- a/src/parse/scanner.rs
+++ b/src/parse/scanner.rs
@@ -102,11 +102,6 @@ impl<'s> Scanner<'s> {
self.peek().map(f).unwrap_or(false)
}
- /// Whether the end of the source string is reached.
- pub fn eof(&self) -> bool {
- self.index == self.src.len()
- }
-
/// The previous index in the source string.
pub fn last_index(&self) -> usize {
self.src[.. self.index]
@@ -126,11 +121,6 @@ impl<'s> Scanner<'s> {
self.index = index;
}
- /// The full source string.
- pub fn src(&self) -> &'s str {
- self.src
- }
-
/// Slice a part out of the source string.
pub fn get<I>(&self, index: I) -> &'s str
where