Browse Source

Removed unused code.

Mihawk 12 years ago
parent
commit
c891f6c3d0
1 changed files with 4 additions and 10 deletions
  1. 4 10
      Client.cpp

+ 4 - 10
Client.cpp

@@ -460,14 +460,7 @@ void Client::run()
   // Scheduled commands
   // Scheduled commands
   if(!myCmdScheduled.isEmpty() && !myCmdScheduledTimer->isActive())
   if(!myCmdScheduled.isEmpty() && !myCmdScheduledTimer->isActive())
   {
   {
-    if(myCmdScheduled == "say s-p")
-    {
-      say("s-p");
-      mySPDetectionTimer->start(2000);
-    }
-    else
-      sendCmd(myCmdScheduled.toAscii().data());
-
+    sendCmd(myCmdScheduled.toAscii().data());
     myCmdScheduled.clear();
     myCmdScheduled.clear();
   }
   }
 
 
@@ -526,8 +519,9 @@ void Client::setAutoDetectSP(bool autoDetect)
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 void Client::spDetection()
 void Client::spDetection()
 {
 {
-  scheduleCmd("say s-p", 2000);
-//  say("s-p");
+//  scheduleCmd("say s-p", 2000);
+  say("s-p");
+  mySPDetectionTimer->start(2000);
 }
 }
 
 
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -