summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-03-21 01:05:49 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-03-21 01:05:49 (GMT)
commit3fd139951c677929c3131765a78ba6c18248b74e (patch)
treeb7ebb6ac38269ddb965ef266f4bb279c730e5865 /Objects/unicodeobject.c
parent87824086fa20e3f7bbb39dc8ee9d3ce70487dd98 (diff)
downloadcpython-3fd139951c677929c3131765a78ba6c18248b74e.zip
cpython-3fd139951c677929c3131765a78ba6c18248b74e.tar.gz
cpython-3fd139951c677929c3131765a78ba6c18248b74e.tar.bz2
Disabled some unused functions to silence compiler warnings
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index fc3ef76..a4bcec4 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -8347,6 +8347,7 @@ doubletounicode(Py_UNICODE *buffer, size_t len, const char *format, double x)
return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
}
+#if 0
static int
longtounicode(Py_UNICODE *buffer, size_t len, const char *format, long x)
{
@@ -8356,6 +8357,7 @@ longtounicode(Py_UNICODE *buffer, size_t len, const char *format, long x)
result = strtounicode(buffer, (char *)buffer);
return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
}
+#endif
/* XXX To save some code duplication, formatfloat/long/int could have been
shared with stringobject.c, converting from 8-bit to Unicode after the
@@ -8426,6 +8428,7 @@ formatlong(PyObject *val, int flags, int prec, int type)
return result;
}
+#if 0
static int
formatint(Py_UNICODE *buf,
size_t buflen,
@@ -8501,6 +8504,7 @@ formatint(Py_UNICODE *buf,
else
return longtounicode(buf, buflen, fmt, x);
}
+#endif
static int
formatchar(Py_UNICODE *buf,