From c998be1868a6c5ed9d7459d348eca41c2f8d09ee Mon Sep 17 00:00:00 2001 From: spo Date: Fri, 30 Oct 2015 10:58:02 +0300 Subject: [PATCH] Remove execute() from revolution feature. --- src/PythonAPI/model/features/revolution.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/PythonAPI/model/features/revolution.py b/src/PythonAPI/model/features/revolution.py index 02ff46738..c2eaaae58 100644 --- a/src/PythonAPI/model/features/revolution.py +++ b/src/PythonAPI/model/features/revolution.py @@ -78,8 +78,6 @@ class Revolution(Interface): "Revolution takes 5 or 7 arguments (%s given)" % (len(args) + 3) ) - - self.__execute() pass def __setBase(self, base): @@ -117,20 +115,12 @@ class Revolution(Interface): self._fill_attribute(self._from_offset, from_offset) pass - def __execute(self): - if self.areInputValid(): - self.execute() - else: - raise Exception("Cannot execute Revolution: %s" % - self._feature.error()) - def setBase(self, base): """Modify base attribute of the feature. See __init__. """ self.__setBase(base) - self.__execute() pass def setAxisObject(self, axis_object): @@ -139,7 +129,6 @@ class Revolution(Interface): See __init__. """ self.__setAxisObject(axis_object) - self.__execute() pass def setAngles(self, *args): @@ -148,7 +137,6 @@ class Revolution(Interface): See __init__. """ self.__createByAngles(*args) - self.__execute() pass def setPlanesAndOffsets(self, *args): @@ -157,5 +145,4 @@ class Revolution(Interface): See __init__. """ self.__createByPlanesAndOffsets(*args) - self.__execute() pass -- 2.39.2