diff options
Diffstat (limited to 'src/parser/event_parser/parser.rs')
-rw-r--r-- | src/parser/event_parser/parser.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parser/event_parser/parser.rs b/src/parser/event_parser/parser.rs index 2cbe370be..18231e493 100644 --- a/src/parser/event_parser/parser.rs +++ b/src/parser/event_parser/parser.rs | |||
@@ -105,9 +105,6 @@ pub(crate) struct Parser<'t> { | |||
105 | curly_limit: Option<i32>, | 105 | curly_limit: Option<i32>, |
106 | } | 106 | } |
107 | 107 | ||
108 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | ||
109 | pub(crate) struct Pos(u32); | ||
110 | |||
111 | impl<'t> Parser<'t> { | 108 | impl<'t> Parser<'t> { |
112 | pub(crate) fn new(text: &'t str, raw_tokens: &'t [Token]) -> Parser<'t> { | 109 | pub(crate) fn new(text: &'t str, raw_tokens: &'t [Token]) -> Parser<'t> { |
113 | let mut tokens = Vec::new(); | 110 | let mut tokens = Vec::new(); |
@@ -133,10 +130,6 @@ impl<'t> Parser<'t> { | |||
133 | } | 130 | } |
134 | } | 131 | } |
135 | 132 | ||
136 | pub(crate) fn pos(&self) -> Pos { | ||
137 | Pos(self.pos as u32) | ||
138 | } | ||
139 | |||
140 | pub(crate) fn into_events(self) -> Vec<Event> { | 133 | pub(crate) fn into_events(self) -> Vec<Event> { |
141 | assert!(self.curly_limit.is_none()); | 134 | assert!(self.curly_limit.is_none()); |
142 | assert_eq!(self.current(), EOF); | 135 | assert_eq!(self.current(), EOF); |