Drop more dead code and unused decls.
authorYann Dirson <ydirson@free.fr>
Mon, 20 Jan 2014 21:00:21 +0000 (22:00 +0100)
committerYann Dirson <ydirson@free.fr>
Mon, 20 Jan 2014 22:06:51 +0000 (23:06 +0100)
gnushogi/commondsp.c
gnushogi/cursesdsp.c
gnushogi/gnushogi.h
gnushogi/rawdsp.c

index 1c51387..6734e22 100644 (file)
@@ -51,7 +51,6 @@
 
 char mvstr[4][6];
 char *InPtr;
-int InBackground = false;
 struct display *dsp = &raw_display;
 
 
@@ -1315,58 +1314,6 @@ Undo(void)
 }
 
 
-void
-FlagString(unsigned short flags, char *s)
-{
-    short l, piece;
-    *s = '\0';
-
-    if (flags & promote)
-        strcat(s, " promote");
-
-    if (flags & dropmask)
-        strcat(s, " drop:");
-
-    if ((piece = (flags & pmask)))
-    {
-        l = strlen(s);
-
-        if (is_promoted[piece])
-            s[l++] = '+';
-
-        s[l++] = pxx[piece];
-        s[l] = '\0';
-    }
-
-    if (flags & capture)
-        strcat(s, " capture");
-
-    if (flags & exact)
-        strcat(s, " exact");
-
-    if (flags & tesuji)
-        strcat(s, " tesuji");
-
-    if (flags & check)
-        strcat(s, " check");
-
-    if (flags & draw)
-        strcat(s, " draw");
-
-    if (flags & stupid)
-        strcat(s, " stupid");
-
-    if (flags & questionable)
-        strcat(s, " questionable");
-
-    if (flags & kingattack)
-        strcat(s, " kingattack");
-
-    if (flags & book)
-        strcat(s, " book");
-}
-
-
 static void
 TestSpeed(void(*f)(short side, short ply,
                    short in_check, short blockable),
@@ -2014,22 +1961,6 @@ InputCommand(char *command)
             printf("%d. %s %ld\n",
                    ++mycnt2, s, TimeControl.clock[player] * 10);
         }
-
-#ifdef notdef /* optional pass best line to frontend with move */
-        if (flag.post && !flag.mate)
-        {
-            int i;
-
-            printf(" %6d ", MSCORE);
-
-            for (i = 1; MV[i] > 0; i++)
-            {
-                algbr((short) (MV[i] >> 8), (short) (MV[i] & 0xFF), false);
-                printf("%5s ", mvstr[0]);
-            }
-        }
-        printf("\n");
-#endif
     }
 }
 
index 9cbca2e..8dd1cd4 100644 (file)
@@ -69,8 +69,6 @@ int mycnt1, mycnt2;
 #define VIR_C(s)  ((flag.reverse) ? (NO_COLS - 1 - column(s)) : column(s))
 #define VIR_R(s)  ((flag.reverse) ? (NO_ROWS - 1 - row(s)) : row(s))
 
-unsigned short MV[MAXDEPTH];
-int MSCORE;
 char *DRAW;
 
 /****************************************
index 462c88a..78c052e 100644 (file)
@@ -682,8 +682,6 @@ extern long znodes;
 extern char ColorStr[2][10];
 
 extern char mvstr[4][6];
-extern unsigned short MV[MAXDEPTH];
-extern int MSCORE;
 extern int mycnt1, mycnt2;
 extern short ahead;
 extern struct leaf rootnode;
index a375813..1658803 100644 (file)
 
 #include "gnushogi.h"
 
-unsigned short MV[MAXDEPTH];
-int MSCORE;
-
 int mycnt1, mycnt2;
 char *DRAW;
-extern char *InPtr;
 extern short pscore[];
 
 /****************************************
@@ -272,19 +268,6 @@ Raw_ExitShogi(void)
 
 
 void
-Raw_Die(int sig)
-{
-    char s[80];
-
-    Raw_ShowMessage("Abort? ");
-    scanf("%s", s);
-
-    if (strcmp(s, "yes") == 0)
-        Raw_ExitShogi();
-}
-
-
-void
 Raw_TerminateSearch(int sig)
 {
 #ifdef INTERRUPT_TEST