From f06dfde00ac95f2361e22d3a2ae699b94fe323b4 Mon Sep 17 00:00:00 2001 From: retif Date: Tue, 18 Nov 2025 17:01:56 +0200 Subject: [PATCH] removed unused function DeclExt --- pycparserext/ext_c_parser.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/pycparserext/ext_c_parser.py b/pycparserext/ext_c_parser.py index 5b22546..1ce882d 100644 --- a/pycparserext/ext_c_parser.py +++ b/pycparserext/ext_c_parser.py @@ -103,32 +103,6 @@ def __iter__(self): attr_names = () -class DeclExt(c_ast.Decl): - @staticmethod - def from_pycparser(decl): - assert isinstance(decl, c_ast.Decl) - new_decl = DeclExt( - name=decl.name, - quals=decl.quals, - align=decl.align, - storage=decl.storage, - funcspec=decl.funcspec, - type=decl.type, - init=decl.init, - bitsize=decl.bitsize, - coord=decl.coord, - ) - if hasattr(decl, "attributes"): - new_decl.attributes = decl.attributes - return new_decl - - def children(self): - nodelist = super().children() - if hasattr(self, "attributes"): - nodelist = (*nodelist, ("attributes", self.attributes)) - return nodelist - - class Asm(c_ast.Node): def __init__(self, asm_keyword, template, output_operands, input_operands, clobbered_regs, coord=None):