Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-19 05:46:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-19 05:47:09 +0400
commita91247c2b4702cbdd423fb5526c2f5a8d04c65d8 (patch)
treeb18f3c10365e52f78eb10f249f5beb8f94477468 /source/blender/freestyle/intern/python/BPy_Id.cpp
parentf127f49b4d8f06fc4328d470e6fae3e4ebf5cff6 (diff)
Code cleanup: unreachable break/return
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Id.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Id.cpp6
1 files changed, 0 insertions, 6 deletions
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;
}