[Python-checkins] cpython: Remove unused functions from _tkinter.

andrew.svetlov python-checkins at python.org
Sun Oct 7 12:39:14 CEST 2012


http://hg.python.org/cpython/rev/21a33257c744
changeset:   79565:21a33257c744
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Sun Oct 07 13:39:00 2012 +0300
summary:
  Remove unused functions from _tkinter.

files:
  Modules/_tkinter.c |  21 ---------------------
  1 files changed, 0 insertions(+), 21 deletions(-)


diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -2859,27 +2859,6 @@
 }
 
 
-/* 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",

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list