Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal: cleanup stray debug statements #4802

Merged
merged 2 commits into from
Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion src/TArea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ QMap<int, QMap<int, QMultiMap<int, int>>> TArea::koordinatenSystem()
}
kS[x][y].insert(z, id);
}
//qDebug()<< "kS="<<kS;
return kS;
}

Expand Down
5 changes: 1 addition & 4 deletions src/TLuaInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,6 @@ int TLuaInterpreter::removeMapMenu(lua_State* L)
}
}
}
qDebug() << removeList;
QMapIterator<QString, QStringList> it2(host.mpMap->mpMapper->mp2dMap->mUserActions);
while (it2.hasNext()) {
it2.next();
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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:"<<label<<"<"<<markup<<">";
host.mpConsole->setLabelStyleSheet(label, markup);
return 0;
}
Expand Down Expand Up @@ -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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not seem okay

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed up

}
QString _n = "error in Lua code";
QString _n2 = "no debug data available";
Expand Down
1 change: 0 additions & 1 deletion src/ctelnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion src/mudlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down