From ef8ff248f3af46508670f3a5fb5348119127a069 Mon Sep 17 00:00:00 2001 From: Vadim Peretokin Date: Sat, 13 Feb 2021 19:19:26 +0100 Subject: [PATCH 1/2] Cleanup stray debug statements --- src/TArea.cpp | 1 - src/TLuaInterpreter.cpp | 5 +---- src/ctelnet.cpp | 1 - src/mudlet.cpp | 1 - 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/TArea.cpp b/src/TArea.cpp index 3676f8600d0..3e2d32402e2 100644 --- a/src/TArea.cpp +++ b/src/TArea.cpp @@ -94,7 +94,6 @@ QMap>> TArea::koordinatenSystem() } kS[x][y].insert(z, id); } - //qDebug()<< "kS="< it2(host.mpMap->mpMapper->mp2dMap->mUserActions); while (it2.hasNext()) { it2.next(); @@ -1545,7 +1544,6 @@ int TLuaInterpreter::addMapEvent(lua_State* L) for (int i = 5; i <= lua_gettop(L); i++) { actionInfo << lua_tostring(L, i); } - qDebug() << actionInfo; Host& host = getHostFromLua(L); if (host.mpMap) { if (host.mpMap->mpMapper) { @@ -9453,7 +9451,6 @@ int TLuaInterpreter::setLabelStyleSheet(lua_State* L) std::string label = getVerifiedString(L, __func__, 1, "label").toStdString(); std::string markup = getVerifiedString(L, __func__, 2, "markup").toStdString(); Host& host = getHostFromLua(L); - //qDebug()<<"CSS: name:"<"; host.mpConsole->setLabelStyleSheet(label, markup); return 0; } @@ -11181,7 +11178,7 @@ bool TLuaInterpreter::compileAndExecuteScript(const QString& code) e += lua_tostring(L, 1); } if (mudlet::debugMode) { - qDebug() << "LUA ERROR: code did not compile: ERROR:" << e.c_str(); + q << "LUA ERROR: code did not compile: ERROR:" << e.c_str(); } QString _n = "error in Lua code"; QString _n2 = "no debug data available"; diff --git a/src/ctelnet.cpp b/src/ctelnet.cpp index d8ac8c8b5c7..c3120ee2406 100644 --- a/src/ctelnet.cpp +++ b/src/ctelnet.cpp @@ -2742,7 +2742,6 @@ void cTelnet::processSocketData(char* in_buffer, int amount) if (mNeedDecompression) { datalen = decompressBuffer(in_buffer, amount, out_buffer); buffer = out_buffer; - //qDebug() << "buffer:" << buffer; } buffer[datalen] = '\0'; if (mpHost->mpConsole->mRecordReplay) { diff --git a/src/mudlet.cpp b/src/mudlet.cpp index c850fb23a82..82d1b9c36fb 100644 --- a/src/mudlet.cpp +++ b/src/mudlet.cpp @@ -1385,7 +1385,6 @@ void mudlet::slot_module_clicked(QTableWidgetItem* pItem) QTableWidgetItem* checkStatus = moduleTable->item(i, 2); QTableWidgetItem* itemPriority = moduleTable->item(i, 1); QTableWidgetItem* itemPath = moduleTable->item(i, 3); - qDebug() << itemPath->text(); if (!entry || !checkStatus || !itemPriority || !mpModuleTableHost->mInstalledModules.contains(entry->text())) { moduleHelpButton->setDisabled(true); if (checkStatus) { From 07637d552a64dde3696c12a819eb8d392f809efb Mon Sep 17 00:00:00 2001 From: Vadim Peretokin Date: Sat, 13 Feb 2021 20:33:16 +0100 Subject: [PATCH 2/2] Revert accidental change --- src/TLuaInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TLuaInterpreter.cpp b/src/TLuaInterpreter.cpp index caeecceeabb..3607887b34d 100644 --- a/src/TLuaInterpreter.cpp +++ b/src/TLuaInterpreter.cpp @@ -11178,7 +11178,7 @@ bool TLuaInterpreter::compileAndExecuteScript(const QString& code) e += lua_tostring(L, 1); } if (mudlet::debugMode) { - q << "LUA ERROR: code did not compile: ERROR:" << e.c_str(); + qDebug() << "LUA ERROR: code did not compile: ERROR:" << e.c_str(); } QString _n = "error in Lua code"; QString _n2 = "no debug data available";