mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Remove unused imports and code
This commit is contained in:
parent
10806bce1e
commit
a9f6bf8d89
15 changed files with 12 additions and 35 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue