summaryrefslogtreecommitdiffstats
path: root/src/crsm.cpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2015-10-16 21:01:47 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2015-10-16 21:01:47 +0200
commit9cae45d5eca0b25d05f9aa5dff95a9cd501696a7 (patch)
treeac6b55ff4a7208daa7056656448e5f99582fa3bd /src/crsm.cpp
parent3bb1f7d2ce551f799e1509eb1085641f81866eed (diff)
downloadmanager-9cae45d5eca0b25d05f9aa5dff95a9cd501696a7.tar.gz
manager-9cae45d5eca0b25d05f9aa5dff95a9cd501696a7.zip
Remove unused functions
Diffstat (limited to 'src/crsm.cpp')
-rw-r--r--src/crsm.cpp81
1 files changed, 1 insertions, 80 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index fb20ebf..36058c2 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -288,70 +288,6 @@ void CRSM::readServerOutput()
}
}
-void CRSM::readInput()
-{
- QString what(qin->readLine());
- if(what == "/exitdetach" || what == "/exitupdate")
- {
- if(what == "/exitupdate")
- {
- writeToServer("Der Server Manager wird upgedatet. Befehle funktionieren temporär nicht.\n");
- }
- Config.Auto.ProcessManager.ReattachId = processManager->ID();
- writeConfig();
- Session.write(Config.CRSM.SessionFile);
- QCoreApplication::quit();
- return;
- }
- if(what == "/exit")
- {
- processManager->closeProgFifos();
- Config.Auto.ProcessManager.ReattachId.clear();
- finish = true;
- if(Session.State == CRSMSession::None)
- scenarioFinished();
- return;
- }
- if(what == "/exitafter")
- {
- finish = true;
- out("Will exit after this round.");
- return;
- }
- if(what == "/next")
- {
- skipCurrent();
- return;
- }
- if(what == "/skip")
- {
- QString skipped;
- if((skipped = skipScen()) != "")
- {
- out("Skipped \"" + skipped + "\".\n");
- }
- else
- out("User list is empty!\n");
-
- return;
- }
- if(what == "/reload")
- {
- out("Reloading config...\n");
- Config.clear();
- ircModChecks.clear();
- ircMods.clear();
- ircModIOList.clear();
- ircModWatchList.clear();
- ircStatusFifos.clear();
- readConfig();
- return;
- }
-
- if(what == "/help") printAdditionalHelp();
- writeToServer(what+"\n");
-}
-
void CRSM::nextScen()
{
if(userlist.length()>0)
@@ -368,27 +304,12 @@ void CRSM::nextScen()
}
}
-void CRSM::printAdditionalHelp()
-{
- out("/exit stops the actual Clonk Server and exits the Server Manager.\n"
- "/exitafter exits the Server Manager after the current round.\n"
- "/next stops the actual Clonk Server and starts a new one.\n"
- "/reload rereads the config file.\n"
- "/skip removes the first scenario in user wish list.\n"
- "Clonk commands following...\n");
-}
-
-void CRSM::readLog()
-{
- QString temp(logfile->readLine().trimmed());
- if(temp != "") logstream << temp << endl;
-}
-
void CRSM::scenarioFinished()
{
if(finish)
{
writeConfig();
+ Stats.write();
if(processManager != nullptr) processManager->exit();
if(connection != 0)
{