Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/gomoku gomoku: remove unused function 'list_eq'



details:   https://anonhg.NetBSD.org/src/rev/fd0c37941dfa
branches:  trunk
changeset: 366246:fd0c37941dfa
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu May 19 23:12:40 2022 +0000

description:
gomoku: remove unused function 'list_eq'

diffstat:

 games/gomoku/gomoku.h   |   3 +--
 games/gomoku/pickmove.c |  19 ++-----------------
 2 files changed, 3 insertions(+), 19 deletions(-)

diffs (55 lines):

diff -r 0a5c6b7d4c48 -r fd0c37941dfa games/gomoku/gomoku.h
--- a/games/gomoku/gomoku.h     Thu May 19 22:49:05 2022 +0000
+++ b/games/gomoku/gomoku.h     Thu May 19 23:12:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gomoku.h,v 1.29 2022/05/19 18:58:59 rillig Exp $       */
+/*     $NetBSD: gomoku.h,v 1.30 2022/05/19 23:12:40 rillig Exp $       */
 
 /*
  * Copyright (c) 1994
@@ -244,7 +244,6 @@
 const char   *stoc(int);
 int    ctos(const char *);
 int    makemove(int, int);
-int    list_eq(struct combostr **, struct combostr **, int);
 void   clearcombo(struct combostr *, int);
 void   markcombo(struct combostr *);
 int    pickmove(int);
diff -r 0a5c6b7d4c48 -r fd0c37941dfa games/gomoku/pickmove.c
--- a/games/gomoku/pickmove.c   Thu May 19 22:49:05 2022 +0000
+++ b/games/gomoku/pickmove.c   Thu May 19 23:12:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pickmove.c,v 1.37 2022/05/19 22:29:36 rillig Exp $     */
+/*     $NetBSD: pickmove.c,v 1.38 2022/05/19 23:12:40 rillig Exp $     */
 
 /*
  * Copyright (c) 1994
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 /*     @(#)pickmove.c  8.2 (Berkeley) 5/3/95   */
-__RCSID("$NetBSD: pickmove.c,v 1.37 2022/05/19 22:29:36 rillig Exp $");
+__RCSID("$NetBSD: pickmove.c,v 1.38 2022/05/19 23:12:40 rillig Exp $");
 
 #include <stdlib.h>
 #include <string.h>
@@ -1470,19 +1470,4 @@
        for (; --n >= 0; sp += d)
                sp->s_flags &= mask;
 }
-
-int
-list_eq(struct combostr **scbpp, struct combostr **cbpp, int n)
-{
-       struct combostr **spp, **cpp;
-
-       spp = scbpp + n;
-       cpp = cbpp + n;
-       do {
-               if (*--spp != *--cpp)
-                       return 0;
-       } while (cpp != cbpp);
-       /* we found a match */
-       return 1;
-}
 #endif /* DEBUG */



Home | Main Index | Thread Index | Old Index