[gnome-chess] Debug: don't whine about unknown commands



commit 874a3d596a036aa4d1d18cec59a097905921fcf7
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jan 7 20:06:47 2014 -0600

    Debug: don't whine about unknown commands
    
    It's almost never an issue. When it is an issue, it's easier to see
    what's wrong when we're NOT printing this out.

 src/chess-engine-cecp.vala |    4 ----
 src/chess-engine-uci.vala  |   13 -------------
 2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/chess-engine-cecp.vala b/src/chess-engine-cecp.vala
index 0479be0..a4daf87 100644
--- a/src/chess-engine-cecp.vala
+++ b/src/chess-engine-cecp.vala
@@ -92,10 +92,6 @@ public class ChessEngineCECP : ChessEngine
             {
                 offer_draw ();
             }
-            else
-            {
-                debug ("Unknown command: '%s'", line);
-            }
 
             buffer = buffer[offset+1:buffer.length];
         }
diff --git a/src/chess-engine-uci.vala b/src/chess-engine-uci.vala
index 93c394e..2152e90 100644
--- a/src/chess-engine-uci.vala
+++ b/src/chess-engine-uci.vala
@@ -87,9 +87,6 @@ public class ChessEngineUCI : ChessEngine
             {
                 switch (tokens[0])
                 {
-                case "id":
-                    break;
-
                 case "uciok":
                     if (tokens.length != 1)
                         warning ("Unexpected arguments on uciok: %s", line);
@@ -111,16 +108,6 @@ public class ChessEngineUCI : ChessEngine
                     waiting_for_move = false;
                     moved (tokens[1]);
                     break;
-
-                case "info":
-                    break;
-
-                case "option":
-                    break;
-
-                default:
-                    debug ("Unknown command: '%s'", line);
-                    break;
                 }
             }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]