mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Disabled some unused functions to silence compiler warnings
This commit is contained in:
parent
87824086fa
commit
3fd139951c
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static int
|
static int
|
||||||
longtounicode(Py_UNICODE *buffer, size_t len, const char *format, long x)
|
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);
|
result = strtounicode(buffer, (char *)buffer);
|
||||||
return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
|
return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* XXX To save some code duplication, formatfloat/long/int could have been
|
/* XXX To save some code duplication, formatfloat/long/int could have been
|
||||||
shared with stringobject.c, converting from 8-bit to Unicode after the
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static int
|
static int
|
||||||
formatint(Py_UNICODE *buf,
|
formatint(Py_UNICODE *buf,
|
||||||
size_t buflen,
|
size_t buflen,
|
||||||
|
@ -8501,6 +8504,7 @@ formatint(Py_UNICODE *buf,
|
||||||
else
|
else
|
||||||
return longtounicode(buf, buflen, fmt, x);
|
return longtounicode(buf, buflen, fmt, x);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
formatchar(Py_UNICODE *buf,
|
formatchar(Py_UNICODE *buf,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue