From 0995f733591542a626dd01c9c8552fffaf4ea04d Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Mon, 20 Jan 2014 22:00:21 +0100 Subject: [PATCH] Drop more dead code and unused decls. --- gnushogi/commondsp.c | 69 -------------------------------------------------- gnushogi/cursesdsp.c | 2 - gnushogi/gnushogi.h | 2 - gnushogi/rawdsp.c | 17 ------------ 4 files changed, 0 insertions(+), 90 deletions(-) diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 1c51387..6734e22 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -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 } } diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 9cbca2e..8dd1cd4 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -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; /**************************************** diff --git a/gnushogi/gnushogi.h b/gnushogi/gnushogi.h index 462c88a..78c052e 100644 --- a/gnushogi/gnushogi.h +++ b/gnushogi/gnushogi.h @@ -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; diff --git a/gnushogi/rawdsp.c b/gnushogi/rawdsp.c index a375813..1658803 100644 --- a/gnushogi/rawdsp.c +++ b/gnushogi/rawdsp.c @@ -44,12 +44,8 @@ #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 -- 1.7.0.4