Remove support for -DNOPOST, and duplicate code it would introduce.
authorYann Dirson <ydirson@free.fr>
Sat, 9 Nov 2013 22:07:51 +0000 (23:07 +0100)
committerYann Dirson <ydirson@free.fr>
Sat, 9 Nov 2013 22:07:51 +0000 (23:07 +0100)
This define would probably not have worked today anyway...

gnushogi/commondsp.c
gnushogi/search.c

index 1c6ae09..45c2e2e 100644 (file)
@@ -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
     }
index e87e1d4..4b967d0 100644 (file)
@@ -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))
         {