Skip to content

Commit 389bdcd

Browse files
committed
removed dead code
1 parent ca012e5 commit 389bdcd

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

solid/py_scadparser/scad_ast.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ def __init__(self, scadType):
1515
def getType(self):
1616
return self.scadType
1717

18-
class ScadUse(ScadObject):
19-
def __init__(self, filename):
20-
super().__init__(ScadTypes.USE)
21-
self.filename = filename
22-
23-
class ScadInclude(ScadObject):
24-
def __init__(self, filename):
25-
super().__init__(ScadTypes.INCLUDE)
26-
self.filename = filename
27-
2818
class ScadGlobalVar(ScadObject):
2919
def __init__(self, name):
3020
super().__init__(ScadTypes.GLOBAL_VAR)

solid/py_scadparser/scad_parser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,17 +254,13 @@ def parseFile(scadFile):
254254
lexer.filename = scadFile
255255
parser = yacc.yacc()
256256

257-
uses = []
258-
includes = []
259257
modules = []
260258
functions = []
261259
globalVars = []
262260

263261
appendObject = { ScadTypes.MODULE : lambda x: modules.append(x),
264262
ScadTypes.FUNCTION: lambda x: functions.append(x),
265263
ScadTypes.GLOBAL_VAR: lambda x: globalVars.append(x),
266-
ScadTypes.USE: lambda x: uses.append(x),
267-
ScadTypes.INCLUDE: lambda x: includes.append(x),
268264
}
269265

270266
from pathlib import Path

0 commit comments

Comments
 (0)