Skip to content

Commit b7e797d

Browse files
committed
Remove unused rwophelper->file member
1 parent ec61c7d commit b7e797d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src_c/rwobject.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ typedef struct {
3737
PyObject *seek;
3838
PyObject *tell;
3939
PyObject *close;
40-
PyObject *file;
4140
} pgRWHelper;
4241

4342
/*static const char pg_default_encoding[] = "unicode_escape";*/
@@ -412,7 +411,6 @@ _pg_rw_close(SDL_RWops *context)
412411
Py_XDECREF(helper->write);
413412
Py_XDECREF(helper->read);
414413
Py_XDECREF(helper->close);
415-
Py_XDECREF(helper->file);
416414

417415
PyMem_Free(helper);
418416
PyGILState_Release(state);
@@ -445,9 +443,6 @@ pgRWops_FromFileObject(PyObject *obj)
445443
return (SDL_RWops *)PyErr_NoMemory();
446444
}
447445

448-
helper->file = obj;
449-
Py_INCREF(obj);
450-
451446
/* Adding a helper to the hidden data to support file-like object RWops */
452447
rw->hidden.unknown.data1 = (void *)helper;
453448
rw->size = _pg_rw_size;

0 commit comments

Comments
 (0)