@@ -1480,7 +1480,6 @@ class Resolver(object):
1480
1480
C_KEYWORDS = "extern virtual static explicit inline friend constexpr" .split ()
1481
1481
C_KEYWORDS = set (C_KEYWORDS )
1482
1482
1483
- SubTypedefs = {} # TODO deprecate?
1484
1483
NAMESPACES = []
1485
1484
CLASSES = {}
1486
1485
@@ -1878,21 +1877,6 @@ def finalize_vars(self):
1878
1877
var ["ctypes_type" ] = "ctypes.c_void_p"
1879
1878
var ["unresolved" ] = True
1880
1879
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
-
1896
1880
elif tag in self ._template_typenames :
1897
1881
var ["typename" ] = tag
1898
1882
var ["ctypes_type" ] = "ctypes.c_void_p"
@@ -2069,10 +2053,6 @@ def finalize(self):
2069
2053
trace_print ("meth returns class:" , meth ["returns" ])
2070
2054
meth ["returns_class" ] = True
2071
2055
2072
- elif meth ["returns" ] in self .SubTypedefs :
2073
- meth ["returns_class" ] = True
2074
- meth ["returns_nested" ] = self .SubTypedefs [meth ["returns" ]]
2075
-
2076
2056
elif meth ["returns" ] in cls ._public_enums :
2077
2057
enum = cls ._public_enums [meth ["returns" ]]
2078
2058
meth ["returns_enum" ] = enum .get ("type" )
@@ -2481,7 +2461,6 @@ def _evaluate_property_stack(self, clearStack=True, addToVar=None):
2481
2461
klass ["typedefs" ][self .curAccessSpecifier ].append (name )
2482
2462
if self .curAccessSpecifier == "public" :
2483
2463
klass ._public_typedefs [name ] = typedef ["type" ]
2484
- Resolver .SubTypedefs [name ] = self .curClass
2485
2464
else :
2486
2465
assert 0
2487
2466
elif self .curClass :
0 commit comments