From: Andrew Svetlov Date: Sun, 7 Oct 2012 10:39:00 +0000 (+0300) Subject: Remove unused functions from _tkinter. X-Git-Tag: v3.4.0a1~2316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09c61bef2d406bac2ea031a6b50d841ee6cf678b;p=python Remove unused functions from _tkinter. --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index f4c7ad6dea..edf0ca2c5f 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -2859,27 +2859,6 @@ DisableEventHook(void) } -/* all errors will be checked in one fell swoop in init_tkinter() */ -static void -ins_long(PyObject *d, char *name, long val) -{ - PyObject *v = PyLong_FromLong(val); - if (v) { - PyDict_SetItemString(d, name, v); - Py_DECREF(v); - } -} -static void -ins_string(PyObject *d, char *name, char *val) -{ - PyObject *v = PyUnicode_FromString(val); - if (v) { - PyDict_SetItemString(d, name, v); - Py_DECREF(v); - } -} - - static struct PyModuleDef _tkintermodule = { PyModuleDef_HEAD_INIT, "_tkinter",