From: Sjoerd Mullender Date: Thu, 30 Aug 2001 13:58:58 +0000 (+0000) Subject: Removed some unreachable break statements to silence SGI compiler. X-Git-Tag: v2.2a3~213 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38b88c233a6706d3a84f372e4b20ab7700f6d79b;p=thirdparty%2FPython%2Fcpython.git Removed some unreachable break statements to silence SGI compiler. --- diff --git a/Objects/methodobject.c b/Objects/methodobject.c index e766ba5e89fd..5fe917805573 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -78,7 +78,6 @@ PyCFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) switch (flags) { case METH_VARARGS: return (*meth)(self, arg); - break; case METH_NOARGS: if (size == 0) return (*meth)(self, NULL); @@ -86,7 +85,6 @@ PyCFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) "%.200s() takes no arguments (%d given)", f->m_ml->ml_name, size); return NULL; - break; case METH_O: if (size == 1) return (*meth)(self, PyTuple_GET_ITEM(arg, 0)); @@ -94,7 +92,6 @@ PyCFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) "%.200s() takes exactly one argument (%d given)", f->m_ml->ml_name, size); return NULL; - break; case METH_OLDARGS: /* the really old style */ if (size == 1)