[Python-checkins] r75675 - in python/trunk: Objects/floatobject.c PC/os2emx/python27.def

eric.smith python-checkins at python.org
Sat Oct 24 21:50:44 CEST 2009


Author: eric.smith
Date: Sat Oct 24 21:50:44 2009
New Revision: 75675

Log:
Removed unused function PyFloat_AsStringEx. It is unused in floatobject.c, and it's not declared in any .h file.

Modified:
   python/trunk/Objects/floatobject.c
   python/trunk/PC/os2emx/python27.def

Modified: python/trunk/Objects/floatobject.c
==============================================================================
--- python/trunk/Objects/floatobject.c	(original)
+++ python/trunk/Objects/floatobject.c	Sat Oct 24 21:50:44 2009
@@ -299,17 +299,6 @@
 
 /* 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

Modified: python/trunk/PC/os2emx/python27.def
==============================================================================
--- python/trunk/PC/os2emx/python27.def	(original)
+++ python/trunk/PC/os2emx/python27.def	Sat Oct 24 21:50:44 2009
@@ -306,7 +306,6 @@
   "PyFloat_AsReprString"
   "PyFloat_AsString"
   "_PyFloat_Init"
-  "PyFloat_AsStringEx"
   "PyFloat_Type"
 
 ; From python27_s.lib(frameobject)


More information about the Python-checkins mailing list