Clean up some unused code

This commit is contained in:
James Westman 2021-12-16 22:08:04 -06:00
parent 5a4cf58e0e
commit 5b76a3b8dd
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
3 changed files with 2 additions and 10 deletions

View file

@ -86,8 +86,6 @@ class AstNode:
for validator in self.validators:
try:
validator(self)
except AlreadyCaughtError:
pass
except CompileError as e:
yield e
@ -140,8 +138,7 @@ class AstNode:
def validate(token_name=None, end_token_name=None, skip_incomplete=False):
""" Decorator for functions that validate an AST node. Exceptions raised
during validation are marked with range information from the tokens. Also
creates a cached property out of the function. """
during validation are marked with range information from the tokens. """
def decorator(func):
def inner(self):