From: Neal Norwitz Date: Thu, 3 May 2007 07:20:57 +0000 (+0000) Subject: Remove dead code. This code couldn't be reached because earlier in X-Git-Tag: v2.6a1~1782 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b267b55ef405cff8e9867c299e4a84bf17dc1c7;p=thirdparty%2FPython%2Fcpython.git Remove dead code. This code couldn't be reached because earlier in the function there is another check for z != Py_None. --- diff --git a/Objects/floatobject.c b/Objects/floatobject.c index fa0908466928..6d9e33fb436d 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -764,18 +764,7 @@ float_pow(PyObject *v, PyObject *w, PyObject *z) /* Sort out special cases here instead of relying on pow() */ if (iw == 0) { /* v**0 is 1, even 0**0 */ - PyFPE_START_PROTECT("pow", return NULL) - if ((PyObject *)z != Py_None) { - double iz; - CONVERT_TO_DOUBLE(z, iz); - ix = fmod(1.0, iz); - if (ix != 0 && iz < 0) - ix += iz; - } - else - ix = 1.0; - PyFPE_END_PROTECT(ix) - return PyFloat_FromDouble(ix); + return PyFloat_FromDouble(1.0); } if (iv == 0.0) { /* 0**w is error if w<0, else 1 */ if (iw < 0.0) {