]> granicus.if.org Git - python/commitdiff
Remove unused functions from _tkinter.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 7 Oct 2012 10:39:00 +0000 (13:39 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 7 Oct 2012 10:39:00 +0000 (13:39 +0300)
Modules/_tkinter.c

index f4c7ad6dea219a984f280ea09df4ee399425a712..edf0ca2c5fa626a7f0508c3a581c1fa48642e64a 100644 (file)
@@ -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",