summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-03-14 22:54:05 +0000
committerdholland <dholland@NetBSD.org>2009-03-14 22:54:05 +0000
commit114ad9c48a887df639da818c9fcbcca45edfd64c (patch)
treeb8fe8c8f180500af54840bf7578ad4403c7e2e37 /sail
parente98a44895c7ca5a00b080fce0b3cbb16bcdff859 (diff)
downloadbsdgames-darwin-114ad9c48a887df639da818c9fcbcca45edfd64c.tar.gz
bsdgames-darwin-114ad9c48a887df639da818c9fcbcca45edfd64c.tar.zst
bsdgames-darwin-114ad9c48a887df639da818c9fcbcca45edfd64c.zip
Turns out the W_FILE message wasn't ever used.
Diffstat (limited to 'sail')
-rw-r--r--sail/extern.h3
-rw-r--r--sail/sync.c20
2 files changed, 4 insertions, 19 deletions
diff --git a/sail/extern.h b/sail/extern.h
index 04090f79..dba55005 100644
--- a/sail/extern.h
+++ b/sail/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.32 2009/03/14 22:52:52 dholland Exp $ */
+/* $NetBSD: extern.h,v 1.33 2009/03/14 22:54:05 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -379,7 +379,6 @@ void send_crew(struct ship *ship, long a, long b, long c);
void send_dbp(struct ship *ship, long a, long b, long c, long d);
void send_drift(struct ship *ship, long a);
void send_explode(struct ship *ship, long a);
-void send_file(void);
void send_foul(struct ship *ship, long a);
void send_gunl(struct ship *ship, long a, long b);
void send_gunr(struct ship *ship, long a, long b);
diff --git a/sail/sync.c b/sail/sync.c
index 83f9e19b..0f689110 100644
--- a/sail/sync.c
+++ b/sail/sync.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sync.c,v 1.30 2009/03/14 22:52:53 dholland Exp $ */
+/* $NetBSD: sync.c,v 1.31 2009/03/14 22:54:05 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: sync.c,v 1.30 2009/03/14 22:52:53 dholland Exp $");
+__RCSID("$NetBSD: sync.c,v 1.31 2009/03/14 22:54:05 dholland Exp $");
#endif
#endif /* not lint */
@@ -62,7 +62,7 @@ __RCSID("$NetBSD: sync.c,v 1.30 2009/03/14 22:52:53 dholland Exp $");
#define W_DBP 5
#define W_DRIFT 6
#define W_EXPLODE 7
-#define W_FILE 8
+/* W_FILE 8 not used */
#define W_FOUL 9
#define W_GUNL 10
#define W_GUNR 11
@@ -103,7 +103,6 @@ static void recv_crew(struct ship *ship, long a, long b, long c);
static void recv_dbp(struct ship *ship, long a, long b, long c, long d);
static void recv_drift(struct ship *ship, long a);
static void recv_explode(struct ship *ship, long a);
-static void recv_file(void);
static void recv_foul(struct ship *ship, long a);
static void recv_gunl(struct ship *ship, long a, long b);
static void recv_gunr(struct ship *ship, long a, long b);
@@ -409,7 +408,6 @@ sync_update(int type, struct ship *ship, const char *astr,
case W_DBP: recv_dbp(ship, a, b, c, d); break;
case W_DRIFT: recv_drift(ship, a); break;
case W_EXPLODE: recv_explode(ship, a); break;
- case W_FILE: recv_file(); break;
case W_FOUL: recv_foul(ship, a); break;
case W_GUNL: recv_gunl(ship, a, b); break;
case W_GUNR: recv_gunr(ship, a, b); break;
@@ -495,12 +493,6 @@ send_explode(struct ship *ship, long a)
}
void
-send_file(void)
-{
- Write(W_FILE, NULL, 0, 0, 0, 0);
-}
-
-void
send_foul(struct ship *ship, long a)
{
Write(W_FOUL, ship, a, 0, 0, 0);
@@ -745,12 +737,6 @@ recv_explode(struct ship *ship, long a)
ship->file->dir = 0;
}
-// XXX why does this exist?
-static void
-recv_file(void)
-{
-}
-
static void
recv_foul(struct ship *ship, long a)
{