From a91247c2b4702cbdd423fb5526c2f5a8d04c65d8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Mar 2014 12:46:33 +1100 Subject: Code cleanup: unreachable break/return --- source/blender/freestyle/intern/python/BPy_Id.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source/blender/freestyle/intern/python/BPy_Id.cpp') diff --git a/source/blender/freestyle/intern/python/BPy_Id.cpp b/source/blender/freestyle/intern/python/BPy_Id.cpp index 8cf20401dd0..7ef56f6baee 100644 --- a/source/blender/freestyle/intern/python/BPy_Id.cpp +++ b/source/blender/freestyle/intern/python/BPy_Id.cpp @@ -105,22 +105,16 @@ static PyObject *Id_RichCompare(BPy_Id *o1, BPy_Id *o2, int opid) switch (opid) { case Py_LT: return PyBool_from_bool(o1->id->operator<(*(o2->id))); - break; case Py_LE: return PyBool_from_bool(o1->id->operator<(*(o2->id)) || o1->id->operator==(*(o2->id))); - break; case Py_EQ: return PyBool_from_bool(o1->id->operator==(*(o2->id))); - break; case Py_NE: return PyBool_from_bool(o1->id->operator!=(*(o2->id))); - break; case Py_GT: return PyBool_from_bool(!(o1->id->operator<(*(o2->id)) || o1->id->operator==(*(o2->id)))); - break; case Py_GE: return PyBool_from_bool(!(o1->id->operator<(*(o2->id)))); - break; } Py_RETURN_NONE; } -- cgit v1.2.3