Skip to content

Commit

Permalink
Disabled some unused functions to silence compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Mar 21, 2008
1 parent 8782408 commit 3fd1399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -8501,6 +8504,7 @@ formatint(Py_UNICODE *buf,
else
return longtounicode(buf, buflen, fmt, x);
}
#endif

static int
formatchar(Py_UNICODE *buf,
Expand Down

0 comments on commit 3fd1399

Please sign in to comment.