Skip to content

Commit f7c97f0

Browse files
committed
Remove unnecessary _tkagg._pyobj_addr function.
It does some silly things with pointers, and it's not even used.
1 parent f99ae8b commit f7c97f0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/_tkagg.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,6 @@ static int PyAggImagePhoto(ClientData clientdata, Tcl_Interp *interp, int
183183
return TCL_OK;
184184
}
185185

186-
static PyObject *_pyobj_addr(PyObject *self, PyObject *args)
187-
{
188-
PyObject *pyobj;
189-
if (!PyArg_ParseTuple(args, "O", &pyobj)) {
190-
return NULL;
191-
}
192-
return Py_BuildValue("n", (Py_ssize_t)pyobj);
193-
}
194-
195186
static PyObject *_tkinit(PyObject *self, PyObject *args)
196187
{
197188
Tcl_Interp *interp;
@@ -226,7 +217,7 @@ static PyObject *_tkinit(PyObject *self, PyObject *args)
226217

227218
static PyMethodDef functions[] = {
228219
/* Tkinter interface stuff */
229-
{ "_pyobj_addr", (PyCFunction)_pyobj_addr, 1 }, { "tkinit", (PyCFunction)_tkinit, 1 },
220+
{ "tkinit", (PyCFunction)_tkinit, 1 },
230221
{ NULL, NULL } /* sentinel */
231222
};
232223

0 commit comments

Comments
 (0)