History

removed extra debugging

ZappoMan committed 11 years ago

Commit eab09ea1 parent 25ae0012 files · +10 −31Browse files

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

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+8−19
@@ -117,8 +117,6 @@ bool ScriptEngine::_stoppingAllScripts = false; · 116 unmodified lines
117117 bool ScriptEngine::_doneRunningThisScript = false;
118118
119119 void ScriptEngine::stopAllScripts(QObject* application) {
120− qDebug() << "ScriptEngine::stopAllScripts() ------- BEGIN -------";
121−
122120 _allScriptsMutex.lock();
123121 _stoppingAllScripts = true;
124122
@@ -148,14 +146,10 @@ void ScriptEngine::stopAllScripts(QObject* application) { · 23 unmodified lines
148146
149147 scriptEngine->waitTillDoneRunning();
150148 i.remove();
151− } else {
152− qDebug() << "ScriptEngine::stopAllScripts() " << scriptName << " - will be freed on it's own.";
153149 }
154150 }
155151 _stoppingAllScripts = false;
156152 _allScriptsMutex.unlock();
157− qDebug() << "ScriptEngine::stopAllScripts() _allKnownScriptEngines.count:" << _allKnownScriptEngines.count();
158− qDebug() << "ScriptEngine::stopAllScripts() ------- DONE -------";
159153 }
160154
161155
@@ -693,8 +687,7 @@ QObject* ScriptEngine::setupTimerWithInterval(const QScriptValue& function, int · 531 unmodified lines
693687
694688 QObject* ScriptEngine::setInterval(const QScriptValue& function, int intervalMS) {
695689 if (_stoppingAllScripts) {
696− qDebug() << "Script.setInterval() while shutting down is ignored...";
697− qDebug() << " parent script:" << getFilename() << "[" << this << "]";
690+ qDebug() << "Script.setInterval() while shutting down is ignored... parent script:" << getFilename();
698691 return NULL; // bail early
699692 }
700693
@@ -703,8 +696,7 @@ QObject* ScriptEngine::setInterval(const QScriptValue& function, int intervalMS) · 2 unmodified lines
703696
704697 QObject* ScriptEngine::setTimeout(const QScriptValue& function, int timeoutMS) {
705698 if (_stoppingAllScripts) {
706− qDebug() << "Script.setTimeout() while shutting down is ignored...";
707− qDebug() << " parent script:" << getFilename() << "[" << this << "]";
699+ qDebug() << "Script.setTimeout() while shutting down is ignored... parent script:" << getFilename();
708700 return NULL; // bail early
709701 }
710702
@@ -754,9 +746,8 @@ void ScriptEngine::print(const QString& message) { · 43 unmodified lines
754746 // all of the files have finished loading.
755747 void ScriptEngine::include(const QStringList& includeFiles, QScriptValue callback) {
756748 if (_stoppingAllScripts) {
757− qDebug() << "Script.include() while shutting down is ignored...";
758− qDebug() << " includeFiles:" << includeFiles;
759− qDebug() << " parent script:" << getFilename() << "[" << this << "]";
749+ qDebug() << "Script.include() while shutting down is ignored..."
750+ << "includeFiles:" << includeFiles << "parent script:" << getFilename();
760751 return; // bail early
761752 }
762753 QList<QUrl> urls;
@@ -799,9 +790,8 @@ void ScriptEngine::include(const QStringList& includeFiles, QScriptValue callbac · 36 unmodified lines
799790
800791 void ScriptEngine::include(const QString& includeFile, QScriptValue callback) {
801792 if (_stoppingAllScripts) {
802− qDebug() << "Script.include() while shutting down is ignored...";
803− qDebug() << " includeFile:" << includeFile;
804− qDebug() << " parent script:" << getFilename() << "[" << this << "]";
793+ qDebug() << "Script.include() while shutting down is ignored... "
794+ << "includeFile:" << includeFile << "parent script:" << getFilename();
805795 return; // bail early
806796 }
807797
@@ -815,9 +805,8 @@ void ScriptEngine::include(const QString& includeFile, QScriptValue callback) { · 7 unmodified lines
815805 // the Application or other context will connect to in order to know to actually load the script
816806 void ScriptEngine::load(const QString& loadFile) {
817807 if (_stoppingAllScripts) {
818− qDebug() << "Script.load() while shutting down is ignored...";
819− qDebug() << " loadFile:" << loadFile;
820− qDebug() << " parent script:" << getFilename() << "[" << this << "]";
808+ qDebug() << "Script.load() while shutting down is ignored... "
809+ << "loadFile:" << loadFile << "parent script:" << getFilename();
821810 return; // bail early
822811 }
823812