Skip to content

Commit ab1bbb4

Browse files
committed
Remove unused code
1 parent b878e97 commit ab1bbb4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

jmespath/parser.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ def _expression(self, binding_power=0):
133133
current_token = self._current_token()
134134
return left
135135

136-
def _token_nud_string_literal(self, token):
137-
return ast.literal(token['value'])
138-
139136
def _token_nud_literal(self, token):
140137
return ast.literal(token['value'])
141138

@@ -435,16 +432,6 @@ def _parse_dot_rhs(self, binding_power):
435432
"Expecting: %s, got: %s" % (allowed,
436433
actual_type))
437434

438-
def _assert_not_token(self, *token_types):
439-
if self._current_token() in token_types:
440-
t = self._lookahead_token(0)
441-
lex_position = t['start']
442-
actual_value = t['value']
443-
actual_type = t['type']
444-
raise exceptions.ParseError(
445-
lex_position, actual_value, actual_type,
446-
"Token %s not allowed to be: %s" % (actual_type, token_types))
447-
448435
def _error_nud_token(self, token):
449436
if token['type'] == 'eof':
450437
raise exceptions.IncompleteExpressionError(

0 commit comments

Comments
 (0)