From cc069120402a5ac94a609d9d985087758c9dee99 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Thu, 15 Dec 2005 03:48:09 +0000 Subject: [PATCH] redundant includes Remove several duplicate includes I discovered while reconciling the vms Makefile. All of these are already being brought in via hack.h so don't need to be explicitly included after it. --- src/decl.c | 1 - src/display.c | 1 - src/mkobj.c | 1 - src/restore.c | 4 +--- src/save.c | 3 +-- src/sp_lev.c | 3 +-- 6 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/decl.c b/src/decl.c index 5b1dad3fc..8d1fbfbec 100644 --- a/src/decl.c +++ b/src/decl.c @@ -40,7 +40,6 @@ NEARDATA int in_doagain = 0; */ struct dgn_topology dungeon_topology = {DUMMY}; -#include "quest.h" struct q_score quest_status = DUMMY; NEARDATA int warn_obj_cnt = 0; diff --git a/src/display.c b/src/display.c index 85ac929d8..d23beabd7 100644 --- a/src/display.c +++ b/src/display.c @@ -116,7 +116,6 @@ * vertical. */ #include "hack.h" -#include "region.h" STATIC_DCL void FDECL(display_monster,(XCHAR_P,XCHAR_P,struct monst *,int,XCHAR_P)); STATIC_DCL int FDECL(swallow_to_glyph, (int, int)); diff --git a/src/mkobj.c b/src/mkobj.c index 2db928dfe..5ec8c525b 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -3,7 +3,6 @@ /* NetHack may be freely redistributed. See license for details. */ #include "hack.h" -#include "prop.h" STATIC_DCL void FDECL(mkbox_cnts,(struct obj *)); STATIC_DCL void FDECL(obj_timer_checks,(struct obj *, XCHAR_P, XCHAR_P, int)); diff --git a/src/restore.c b/src/restore.c index 7d36d8e7f..6c6222a64 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)restore.c 3.5 2005/01/04 */ +/* SCCS Id: @(#)restore.c 3.5 2005/12/14 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -87,8 +87,6 @@ void FDECL( amii_setpens, (int) ); /* use colors from save file */ extern int amii_numcolors; #endif -#include "quest.h" - boolean restoring = FALSE; static NEARDATA struct fruit *oldfruit; static NEARDATA long omoves; diff --git a/src/save.c b/src/save.c index 9477eacee..e7204ab35 100644 --- a/src/save.c +++ b/src/save.c @@ -1,10 +1,9 @@ -/* SCCS Id: @(#)save.c 3.5 2005/01/04 */ +/* SCCS Id: @(#)save.c 3.5 2005/12/14 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ #include "hack.h" #include "lev.h" -#include "quest.h" #ifndef NO_SIGNAL #include diff --git a/src/sp_lev.c b/src/sp_lev.c index f288f3b27..cacf84ada 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)sp_lev.c 3.5 2001/09/06 */ +/* SCCS Id: @(#)sp_lev.c 3.5 2005/12/14 */ /* Copyright (c) 1989 by Jean-Christophe Collet */ /* NetHack may be freely redistributed. See license for details. */ @@ -22,7 +22,6 @@ #endif #include "sp_lev.h" -#include "rect.h" extern void FDECL(mkmap, (lev_init *)); -- 2.40.0