Skip to content

Commit 5fbe8ff

Browse files
authored
removed unused function DeclExt (#97)
1 parent e38e2c8 commit 5fbe8ff

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

pycparserext/ext_c_parser.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -103,32 +103,6 @@ def __iter__(self):
103103
attr_names = ()
104104

105105

106-
class DeclExt(c_ast.Decl):
107-
@staticmethod
108-
def from_pycparser(decl):
109-
assert isinstance(decl, c_ast.Decl)
110-
new_decl = DeclExt(
111-
name=decl.name,
112-
quals=decl.quals,
113-
align=decl.align,
114-
storage=decl.storage,
115-
funcspec=decl.funcspec,
116-
type=decl.type,
117-
init=decl.init,
118-
bitsize=decl.bitsize,
119-
coord=decl.coord,
120-
)
121-
if hasattr(decl, "attributes"):
122-
new_decl.attributes = decl.attributes
123-
return new_decl
124-
125-
def children(self):
126-
nodelist = super().children()
127-
if hasattr(self, "attributes"):
128-
nodelist = (*nodelist, ("attributes", self.attributes))
129-
return nodelist
130-
131-
132106
class Asm(c_ast.Node):
133107
def __init__(self, asm_keyword, template, output_operands,
134108
input_operands, clobbered_regs, coord=None):

0 commit comments

Comments
 (0)