From edce279dee2848e9c35959221e43d5f0e34c1947 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 27 Jun 2018 23:19:57 +0200 Subject: [PATCH] Remove a function that was no longer used --- parso/python/parser.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/parso/python/parser.py b/parso/python/parser.py index 7d4592a..a18309c 100644 --- a/parso/python/parser.py +++ b/parso/python/parser.py @@ -148,15 +148,6 @@ class Parser(BaseParser): if self._start_nonterminal == 'file_input' and \ (typ == PythonTokenTypes.ENDMARKER or typ == DEDENT and '\n' not in last_leaf.value): - def reduce_stack(states, newstate): - # reduce - state = newstate - while states[state] == [(0, state)]: - self.pgen_parser._pop() - - dfa, state, (type_, nodes) = stack[-1] - states, first = dfa - # In Python statements need to end with a newline. But since it's # possible (and valid in Python ) that there's no newline at the # end of a file, we have to recover even if the user doesn't want