Commit a85ae76e authored by gsamain's avatar gsamain

Remove dead code (checking for wrapper entry presence in cypclass, which is...

Remove dead code (checking for wrapper entry presence in cypclass, which is ensured by a default declaration during class declaration in symbol table)
parent 9005d6f7
...@@ -828,9 +828,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -828,9 +828,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
constructor = scope.lookup_here("<init>") constructor = scope.lookup_here("<init>")
new = scope.lookup_here("__new__") new = scope.lookup_here("__new__")
alloc = scope.lookup_here("<alloc>") alloc = scope.lookup_here("<alloc>")
if not wrapper:
error(self.pos, "No constructor wrapper found for cypclass %s, did you write an __init__ method ?" % type.name)
return
for wrapper_entry in wrapper.all_alternatives(): for wrapper_entry in wrapper.all_alternatives():
if wrapper_entry.used or entry.type.templates: if wrapper_entry.used or entry.type.templates:
self.generate_cyp_class_wrapper_definition(entry.type, wrapper_entry, constructor, new, alloc, code) self.generate_cyp_class_wrapper_definition(entry.type, wrapper_entry, constructor, new, alloc, code)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment