summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-10-24 19:50:44 (GMT)
committerEric Smith <eric@trueblade.com>2009-10-24 19:50:44 (GMT)
commit8c3fb3944050687769f474ad6cc176f35c90bc81 (patch)
treee65f5a4815184236705a45ec09bd1f649141092f /Objects
parentf32540703815825d5d81051bd40d5b343ccee1e9 (diff)
downloadcpython-8c3fb3944050687769f474ad6cc176f35c90bc81.zip
cpython-8c3fb3944050687769f474ad6cc176f35c90bc81.tar.gz
cpython-8c3fb3944050687769f474ad6cc176f35c90bc81.tar.bz2
Removed unused function PyFloat_AsStringEx. It is unused in floatobject.c, and it's not declared in any .h file.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/floatobject.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 745fe54..73d7903 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -299,17 +299,6 @@ PyFloat_AsDouble(PyObject *op)
/* Methods */
-/* XXX PyFloat_AsStringEx should not be a public API function (for one
- XXX thing, its signature passes a buffer without a length; for another,
- XXX it isn't useful outside this file).
-*/
-void
-PyFloat_AsStringEx(char *buf, PyFloatObject *v, int precision)
-{
- _PyOS_double_to_string(buf, 100, v->ob_fval, 'g', precision,
- Py_DTSF_ADD_DOT_0, NULL);
-}
-
/* Macro and helper that convert PyObject obj to a C double and store
the value in dbl; this replaces the functionality of the coercion
slot function. If conversion to double raises an exception, obj is