History

removed some debug code

Brad Hefta-Gaub committed 11 years ago

Commit 41caa361 parent bdae3e41 file · +1 −9Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−9
@@ -118,14 +118,8 @@ ScriptEngine::~ScriptEngine() { · 117 unmodified lines
118118 }
119119 }
120120
121−class MyWorkerThread : public QThread {
122−public:
123− MyWorkerThread(QObject* parent = nullptr) : QThread(parent) { qDebug() << "MyWorkerThread::MyWorkerThread() this:" << this; }
124− ~MyWorkerThread() { qDebug() << "MyWorkerThread::~MyWorkerThread() this:" << this; }
125−};
126−
127121 void ScriptEngine::runInThread() {
128− QThread* workerThread = new MyWorkerThread(); // thread is owned but ScriptEngine, so if the ScriptEngine is destroyed, the thread will be too.
122+ QThread* workerThread = new QThread(); // thread is owned but ScriptEngine, so if the ScriptEngine is destroyed, the thread will be too.
129123 QString scriptEngineName = QString("Script Thread:") + getFilename();
130124 workerThread->setObjectName(scriptEngineName);
131125
@@ -659,12 +653,10 @@ void ScriptEngine::run() { · 527 unmodified lines
659653 _isRunning = false;
660654 if (_wantSignals) {
661655 emit runningStateChanged();
662− qDebug() << "ScriptEngine::run().... about to emit doneRunning().... this:" << this << "my thread:" << thread() << "current thread:" << QThread::currentThread();
663656 emit doneRunning();
664657 }
665658
666659 _doneRunningThisScript = true;
667− qDebug() << "ScriptEngine::run().... END OF RUN.... this:" << this << "my thread:" << thread() << "current thread:" << QThread::currentThread();
668660 }
669661
670662 // NOTE: This is private because it must be called on the same thread that created the timers, which is why