Browse Source

STYLE: Remove commented code from ctkPythonShell

Jean-Christophe Fillion-Robin 14 years ago
parent
commit
db142103ff

+ 0 - 12
Libs/Scripting/Python/Widgets/ctkPythonShell.cpp

@@ -300,18 +300,6 @@ void ctkPythonShell::clear()
   this->Implementation->promptForInput();
 }
 
-// //----------------------------------------------------------------------------
-// void ctkPythonShell::makeCurrent()
-// {
-//   this->Implementation->Interpreter->MakeCurrent();
-// }
-// 
-// //----------------------------------------------------------------------------
-// void ctkPythonShell::releaseControl()
-// {
-//   this->Implementation->Interpreter->ReleaseControl();
-// }
-
 //----------------------------------------------------------------------------
 void ctkPythonShell::executeScript(const QString& script)
 {

+ 1 - 14
Libs/Scripting/Python/Widgets/ctkPythonShell.h

@@ -68,8 +68,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 class ctkAbstractPythonManager;
 
-class CTK_SCRIPTING_PYTHON_WIDGETS_EXPORT ctkPythonShell :
-  public QWidget
+class CTK_SCRIPTING_PYTHON_WIDGETS_EXPORT ctkPythonShell : public QWidget
 {
   Q_OBJECT
   
@@ -78,21 +77,9 @@ public:
   ctkPythonShell(ctkAbstractPythonManager* pythonManager, QWidget* _parent = 0);
   ~ctkPythonShell();
 
-
-  /// Initializes the interpretor. If an interpretor is already setup (by an
-  /// earlier call to this method), it will be destroyed.
-//   void initializeInterpretor(int argc, char* argv[]);
-//   void initializeInterpretor();
-
   /// Prints some text on the shell.
   void printMessage(const QString&);
 
-  /// Calls MakeCurrent in the internal vtkPVPythonInteractiveInterpretor instance
-//   void makeCurrent();
-
-  /// Calls ReleaseControl in the internal vtkPVPythonInteractiveInterpretor instance
-//   void releaseControl();
-
   /// Given a python variable name, lookup its attributes and return them in a
   /// string list.
   QStringList getPythonAttributes(const QString& pythonVariableName);