Commit bd1b60ec authored by Stefan Behnel's avatar Stefan Behnel

remove unused code

parent 65b33dfb
...@@ -2842,7 +2842,6 @@ class DefNode(FuncDefNode): ...@@ -2842,7 +2842,6 @@ class DefNode(FuncDefNode):
last_required_arg = i last_required_arg = i
if last_required_arg < max_positional_args: if last_required_arg < max_positional_args:
last_required_arg = max_positional_args-1 last_required_arg = max_positional_args-1
num_required_args = self.num_required_args
if max_positional_args > 0: if max_positional_args > 0:
code.putln('switch (pos_args) {') code.putln('switch (pos_args) {')
for i, arg in enumerate(all_args[:last_required_arg+1]): for i, arg in enumerate(all_args[:last_required_arg+1]):
...@@ -2862,7 +2861,6 @@ class DefNode(FuncDefNode): ...@@ -2862,7 +2861,6 @@ class DefNode(FuncDefNode):
code.putln('if (value) { values[%d] = value; kw_args--; }' % i) code.putln('if (value) { values[%d] = value; kw_args--; }' % i)
code.putln('}') code.putln('}')
else: else:
num_required_args -= 1
code.putln('values[%d] = PyDict_GetItem(%s, %s);' % ( code.putln('values[%d] = PyDict_GetItem(%s, %s);' % (
i, Naming.kwds_cname, pystring_cname)) i, Naming.kwds_cname, pystring_cname))
code.putln('if (likely(values[%d])) kw_args--;' % i); code.putln('if (likely(values[%d])) kw_args--;' % i);
......
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