浏览代码

Remove private method ctkPythonConsole::promptForInput

Jean-Christophe Fillion-Robin 14 年之前
父节点
当前提交
ecdd4aa61e

+ 1 - 8
Libs/Scripting/Python/Widgets/ctkPythonConsole.cpp

@@ -322,7 +322,7 @@ ctkPythonConsole::ctkPythonConsole(ctkAbstractPythonManager* pythonManager, QWid
   d->Console.setFormat(format);
   d->Console.printString(
     QString("Python %1 on %2\n").arg(Py_GetVersion()).arg(Py_GetPlatform()));
-  this->promptForInput();
+  d->promptForInput();
 
   Q_ASSERT(PythonQt::self());
 
@@ -481,13 +481,6 @@ void ctkPythonConsole::onExecuteCommand(const QString& Command)
 }
 
 //----------------------------------------------------------------------------
-void ctkPythonConsole::promptForInput()
-{
-  Q_D(ctkPythonConsole);
-  d->promptForInput();
-}
-
-//----------------------------------------------------------------------------
 void ctkPythonConsole::internalExecuteCommand(const QString& command)
 {
   Q_D(ctkPythonConsole);

+ 0 - 1
Libs/Scripting/Python/Widgets/ctkPythonConsole.h

@@ -104,7 +104,6 @@ private:
   Q_DECLARE_PRIVATE(ctkPythonConsole);
   Q_DISABLE_COPY(ctkPythonConsole);
 
-  void promptForInput();
   void internalExecuteCommand(const QString&);
 };