summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-05 02:02:41 (GMT)
committerJesus Cea <jcea@jcea.es>2012-10-05 02:02:41 (GMT)
commit6efe9dff14857770a6436c0ea83029f570692131 (patch)
tree5aa58070cf90bb93222da9c4b7162fec1aa46e10 /Modules/_tkinter.c
parentbf0f34421ca71be9eedafc9d288e2bc1623c41b3 (diff)
downloadcpython-6efe9dff14857770a6436c0ea83029f570692131.zip
cpython-6efe9dff14857770a6436c0ea83029f570692131.tar.gz
cpython-6efe9dff14857770a6436c0ea83029f570692131.tar.bz2
Issue #14446: Remove deprecated tkinter functions: Delete an unused function to avoid a warning
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 2e9b6de..761557f 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -323,36 +323,6 @@ WaitForMainloop(TkappObject* self)
#endif /* WITH_THREAD */
-static char *
-AsString(PyObject *value, PyObject *tmp)
-{
- if (PyBytes_Check(value))
- return PyBytes_AsString(value);
- else if (PyUnicode_Check(value)) {
- PyObject *v = PyUnicode_AsUTF8String(value);
- if (v == NULL)
- return NULL;
- if (PyList_Append(tmp, v) != 0) {
- Py_DECREF(v);
- return NULL;
- }
- Py_DECREF(v);
- return PyBytes_AsString(v);
- }
- else {
- PyObject *v = PyObject_Str(value);
- if (v == NULL)
- return NULL;
- if (PyList_Append(tmp, v) != 0) {
- Py_DECREF(v);
- return NULL;
- }
- Py_DECREF(v);
- return PyBytes_AsString(v);
- }
-}
-
-
#define ARGSZ 64