Module Name: src Committed By: rillig Date: Thu May 19 23:12:40 UTC 2022
Modified Files: src/games/gomoku: gomoku.h pickmove.c Log Message: gomoku: remove unused function 'list_eq' To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/games/gomoku/gomoku.h cvs rdiff -u -r1.37 -r1.38 src/games/gomoku/pickmove.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/gomoku/gomoku.h diff -u src/games/gomoku/gomoku.h:1.29 src/games/gomoku/gomoku.h:1.30 --- src/games/gomoku/gomoku.h:1.29 Thu May 19 18:58:59 2022 +++ src/games/gomoku/gomoku.h Thu May 19 23:12:40 2022 @@ -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 @@ void whatsup(int); 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); Index: src/games/gomoku/pickmove.c diff -u src/games/gomoku/pickmove.c:1.37 src/games/gomoku/pickmove.c:1.38 --- src/games/gomoku/pickmove.c:1.37 Thu May 19 22:29:36 2022 +++ src/games/gomoku/pickmove.c Thu May 19 23:12:40 2022 @@ -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 @@ clearcombo(struct combostr *cbp, int ope 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 */