Skip to content

Commit f045de4

Browse files
committed
remove code which does nothing but cause refleaks
1 parent ae376e5 commit f045de4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: Modules/_opcode.c

-4
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,11 @@ _opcode_stack_effect_impl(PyModuleDef *module, int opcode, PyObject *oparg)
5555
int effect;
5656
int oparg_int = 0;
5757
if (HAS_ARG(opcode)) {
58-
PyObject *i_object;
5958
if (oparg == Py_None) {
6059
PyErr_SetString(PyExc_ValueError,
6160
"stack_effect: opcode requires oparg but oparg was not specified");
6261
return -1;
6362
}
64-
i_object = PyNumber_Index(oparg);
65-
if (!i_object)
66-
return -1;
6763
oparg_int = (int)PyLong_AsLong(oparg);
6864
if ((oparg_int == -1) && PyErr_Occurred())
6965
return -1;

0 commit comments

Comments
 (0)