Commit 6837ec46 authored by gsamain's avatar gsamain

Remove NameNode deletion code case for cypclass: dead code

parent 538c730b
...@@ -2493,22 +2493,6 @@ class NameNode(AtomicExprNode): ...@@ -2493,22 +2493,6 @@ class NameNode(AtomicExprNode):
else: else:
code.put_xdecref_memoryviewslice(self.entry.cname, code.put_xdecref_memoryviewslice(self.entry.cname,
have_gil=not self.nogil) have_gil=not self.nogil)
elif self.entry.type.is_cyp_class:
if not self.cf_is_null:
if self.cf_maybe_null and not ignore_nonexisting:
code.put_error_if_unbound(self.pos, self.entry)
if self.entry.in_closure:
# generator
if ignore_nonexisting and self.cf_maybe_null:
code.put_cyxgotref(self.result())
else:
code.put_cygotref(self.result())
if ignore_nonexisting and self.cf_maybe_null:
code.put_cyxdecref(self.result())
else:
code.put_cydecref(self.result())
code.putln('%s = NULL;' % self.result())
else: else:
error(self.pos, "Deletion of C names not supported") error(self.pos, "Deletion of C names not supported")
......
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