Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 45968:f3d838dab40e
Disabled some unused functions to silence compiler warnings
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Fri, 21 Mar 2008 01:05:49 +0000 |
| parents | 30c4e1ca8421 |
| children | 0a485593ae1c |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Thu Mar 20 23:02:08 2008 +0000 +++ b/Objects/unicodeobject.c Fri Mar 21 01:05:49 2008 +0000 @@ -8347,6 +8347,7 @@ 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 @@ 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 @@ return result; } +#if 0 static int formatint(Py_UNICODE *buf, size_t buflen, @@ -8501,6 +8504,7 @@ else return longtounicode(buf, buflen, fmt, x); } +#endif static int formatchar(Py_UNICODE *buf,
