gomoku: remove unused function 'list_eq'

This commit is contained in:
rillig 2022-05-19 23:12:40 +00:00
parent 2695c7a747
commit 6d8c791c47
2 changed files with 3 additions and 19 deletions

View File

@ -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);

View File

@ -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 open)
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 */