summaryrefslogtreecommitdiff
path: root/src/parse/parser.rs
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2022-02-21 13:48:21 +0100
committerMartin Haug <mhaug@live.de>2022-02-21 13:48:21 +0100
commitaac3afcba8ee9b3692f784c78626aa0596aaf612 (patch)
tree1350fadea7f619503342b2c7a6e9a44d86e83f66 /src/parse/parser.rs
parent61761604e431cbb1f0bc66671e90c20aa19f98b4 (diff)
Remove `Parbreak` as a `NodeKind`
Diffstat (limited to 'src/parse/parser.rs')
-rw-r--r--src/parse/parser.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs
index e495dbd0..545f6fd4 100644
--- a/src/parse/parser.rs
+++ b/src/parse/parser.rs
@@ -176,13 +176,6 @@ impl<'s> Parser<'s> {
}
}
- /// Eat the current token, but change its type.
- pub fn convert(&mut self, kind: NodeKind) {
- let marker = self.marker();
- self.eat();
- marker.convert(self, kind);
- }
-
/// Whether the current token is of the given type.
pub fn at(&self, kind: &NodeKind) -> bool {
self.peek() == Some(kind)