Skip to content

Commit da1a074

Browse files
committed
Remove SubTypedefs thing
- Doesn't seem useful
1 parent 8d4abd7 commit da1a074

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

CppHeaderParser/CppHeaderParser.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,6 @@ class Resolver(object):
14801480
C_KEYWORDS = "extern virtual static explicit inline friend constexpr".split()
14811481
C_KEYWORDS = set(C_KEYWORDS)
14821482

1483-
SubTypedefs = {} # TODO deprecate?
14841483
NAMESPACES = []
14851484
CLASSES = {}
14861485

@@ -1878,21 +1877,6 @@ def finalize_vars(self):
18781877
var["ctypes_type"] = "ctypes.c_void_p"
18791878
var["unresolved"] = True
18801879

1881-
elif tag in self.SubTypedefs: # TODO remove SubTypedefs
1882-
if (
1883-
"property_of_class" in var
1884-
or "property_of_struct" in var
1885-
):
1886-
trace_print(
1887-
"class:", self.SubTypedefs[tag], "tag:", tag
1888-
)
1889-
var["typedef"] = self.SubTypedefs[tag] # class name
1890-
var["ctypes_type"] = "ctypes.c_void_p"
1891-
else:
1892-
trace_print("WARN-this should almost never happen!")
1893-
trace_print(var)
1894-
var["unresolved"] = True
1895-
18961880
elif tag in self._template_typenames:
18971881
var["typename"] = tag
18981882
var["ctypes_type"] = "ctypes.c_void_p"
@@ -2069,10 +2053,6 @@ def finalize(self):
20692053
trace_print("meth returns class:", meth["returns"])
20702054
meth["returns_class"] = True
20712055

2072-
elif meth["returns"] in self.SubTypedefs:
2073-
meth["returns_class"] = True
2074-
meth["returns_nested"] = self.SubTypedefs[meth["returns"]]
2075-
20762056
elif meth["returns"] in cls._public_enums:
20772057
enum = cls._public_enums[meth["returns"]]
20782058
meth["returns_enum"] = enum.get("type")
@@ -2481,7 +2461,6 @@ def _evaluate_property_stack(self, clearStack=True, addToVar=None):
24812461
klass["typedefs"][self.curAccessSpecifier].append(name)
24822462
if self.curAccessSpecifier == "public":
24832463
klass._public_typedefs[name] = typedef["type"]
2484-
Resolver.SubTypedefs[name] = self.curClass
24852464
else:
24862465
assert 0
24872466
elif self.curClass:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy