Commit d31c5e78 authored by Robert Bradshaw's avatar Robert Bradshaw

Remove unused parameter.

parent 319f6b0a
...@@ -2255,8 +2255,7 @@ class CppClassScope(Scope): ...@@ -2255,8 +2255,7 @@ class CppClassScope(Scope):
def declare_var(self, name, type, pos, def declare_var(self, name, type, pos,
cname = None, visibility = 'extern', cname = None, visibility = 'extern',
api = 0, in_pxd = 0, is_cdef = 0, api = 0, in_pxd = 0, is_cdef = 0, defining = 0):
allow_pyobject = 0, defining = 0):
# Add an entry for an attribute. # Add an entry for an attribute.
if not cname: if not cname:
cname = name cname = name
...@@ -2275,7 +2274,7 @@ class CppClassScope(Scope): ...@@ -2275,7 +2274,7 @@ class CppClassScope(Scope):
entry.func_cname = "%s::%s" % (self.type.empty_declaration_code(), cname) entry.func_cname = "%s::%s" % (self.type.empty_declaration_code(), cname)
if name != "this" and (defining or name != "<init>"): if name != "this" and (defining or name != "<init>"):
self.var_entries.append(entry) self.var_entries.append(entry)
if type.is_pyobject and not allow_pyobject: if type.is_pyobject:
error(pos, error(pos,
"C++ class member cannot be a Python object") "C++ class member cannot be a Python object")
return entry return entry
......
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