Remove unused imports and code

This commit is contained in:
James Westman 2023-04-11 21:26:37 -05:00
parent 10806bce1e
commit a9f6bf8d89
15 changed files with 12 additions and 35 deletions

View file

@ -21,10 +21,7 @@ import typing as T
from blueprintcompiler.language.values import StringValue
from .attributes import BaseAttribute
from .gobject_object import Object, ObjectContent
from .common import *
from .values import Translated, QuotedLiteral
from .contexts import ValueTypeCtx
@ -51,14 +48,6 @@ class Menu(AstNode):
raise CompileError("Menu requires an ID")
class MenuValue(AstNode):
grammar = AnyOf(QuotedLiteral, Translated)
@property
def child(self) -> T.Union[QuotedLiteral, Translated]:
return self.children[0]
class MenuAttribute(AstNode):
tag_name = "attribute"