summaryrefslogtreecommitdiffstats
path: root/Objects/methodobject.c
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>2001-08-30 13:58:58 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>2001-08-30 13:58:58 (GMT)
commit38b88c233a6706d3a84f372e4b20ab7700f6d79b (patch)
treedceafe33dbfdb13b7ef6d6d973f138c4e87a7f11 /Objects/methodobject.c
parent34eaf86e95cf6d5dae4b97aa57776c4e145e735c (diff)
downloadcpython-38b88c233a6706d3a84f372e4b20ab7700f6d79b.zip
cpython-38b88c233a6706d3a84f372e4b20ab7700f6d79b.tar.gz
cpython-38b88c233a6706d3a84f372e4b20ab7700f6d79b.tar.bz2
Removed some unreachable break statements to silence SGI compiler.
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r--Objects/methodobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index e766ba5..5fe9178 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)