Skip to content

Commit

Permalink
Remove unused token type
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Aug 30, 2023
1 parent 450f0a4 commit 2762808
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions auto_editor/lang/palet.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ClosingError(MyError):
SEC_UNITS = ("s", "sec", "secs", "second", "seconds")
VAL, QUOTE, SEC, DB, PER, DOT = "VAL", "QUOTE", "SEC", "DB", "PER", "DOT"
LPAREN, RPAREN, LBRAC, RBRAC, LCUR, RCUR, EOF = "(", ")", "[", "]", "{", "}", "EOF"
VLIT, HASH_LIT = "VLIT", "HLIT"
VLIT = "VLIT"
METHODS = ("audio:", "motion:", "pixeldiff:", "subtitle:", "none:", "all/e:")
brac_pairs = {LPAREN: RPAREN, LBRAC: RBRAC, LCUR: RCUR}

Expand Down Expand Up @@ -221,18 +221,6 @@ def hash_literal(self) -> Token:
if result in ("f", "F", "false"):
return Token(VAL, False)

if result == "hash":
self.advance()
if self.char is None or self.char not in "([{":
self.error("Expected an opening bracket after #hash")

brac_type = self.char
self.advance()
if self.char is None:
self.close_err(f"Expected a character after #{brac_type}")

return Token(HASH_LIT, brac_type)

self.error(f"Unknown hash literal `#{result}`")

def get_next_token(self) -> Token:
Expand Down

0 comments on commit 2762808

Please sign in to comment.