From: Yann Dirson Date: Sat, 9 Nov 2013 22:07:51 +0000 (+0100) Subject: Remove support for -DNOPOST, and duplicate code it would introduce. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ea78287f5e83a2d8c3b65554f853122e470269ff;p=gnushogi.git Remove support for -DNOPOST, and duplicate code it would introduce. This define would probably not have worked today anyway... --- diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 1c6ae09..45c2e2e 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -1558,10 +1558,8 @@ InputCommand(char *command) algbr((short) hint >> 8, (short) hint & 0xff, false); strcpy(s, mvstr[0]); -#if !defined NOPOST if (flag.post) dsp->GiveHint(); -#endif /* do the hint move */ if (VerifyMove(s, VERIFY_AND_TRY_MODE, &mv)) @@ -1664,12 +1662,6 @@ InputCommand(char *command) { flag.quit = true; } -#if !defined NOPOST - else if (strcmp(s, "post") == 0) - { - flag.post = !flag.post; - } -#endif else if ((strcmp(s, "set") == 0) || (strcmp(s, "edit") == 0)) { @@ -2015,8 +2007,6 @@ InputCommand(char *command) } #ifdef notdef /* optional pass best line to frontend with move */ -# if !defined NOPOST - if (flag.post && !flag.mate) { int i; @@ -2029,7 +2019,6 @@ InputCommand(char *command) printf("%5s ", mvstr[0]); } } -# endif printf("\n"); #endif } diff --git a/gnushogi/search.c b/gnushogi/search.c index e87e1d4..4b967d0 100644 --- a/gnushogi/search.c +++ b/gnushogi/search.c @@ -861,7 +861,6 @@ search(short side, nxtline[ply + 1] = 0; /* if at top level */ -#if !defined NOPOST if (ply == 1) { /* at the top update search status */ @@ -873,7 +872,6 @@ search(short side, dsp->ShowCurrentMove(pnt, node->f, node->t); } } -#endif if (!(node->flags & exact)) {