From f7cde8766de619fc4490d914c8b9cfe1c97e2479 Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Sun, 23 May 2021 12:16:21 -0500 Subject: [PATCH] Remove tiny dead code --- lark/parsers/earley.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lark/parsers/earley.py b/lark/parsers/earley.py index 3f537c2..5961d5d 100644 --- a/lark/parsers/earley.py +++ b/lark/parsers/earley.py @@ -12,7 +12,6 @@ is explained here: https://lark-parser.readthedocs.io/en/latest/_static/sppf/spp from collections import deque from ..tree import Tree -from ..visitors import Transformer_InPlace, v_args from ..exceptions import UnexpectedEOF, UnexpectedToken from ..utils import logger from .grammar_analysis import GrammarAnalyzer @@ -325,11 +324,3 @@ class Parser: # return the root of the SPPF return solutions[0] - -class ApplyCallbacks(Transformer_InPlace): - def __init__(self, postprocess): - self.postprocess = postprocess - - @v_args(meta=True) - def drv(self, children, meta): - return self.postprocess[meta.rule](children)