OSDN Git Service

使用されていない変数の削除。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 25 Mar 2002 07:10:22 +0000 (07:10 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 25 Mar 2002 07:10:22 +0000 (07:10 +0000)
src/cmd3.c
src/dungeon.c
src/load.c
src/main-x11.c
src/wizard1.c

index bf741f1..0a90a3f 100644 (file)
@@ -2928,10 +2928,6 @@ bool research_mon(void)
        char sym, query;
        char buf[128];
 
-       s16b oldkills;
-       byte oldwake;
-       bool oldcheat;
-
        bool notpicked;
 
        bool recall = FALSE;
index cb35549..e5a57a9 100644 (file)
@@ -1484,7 +1484,6 @@ static void process_world(void)
        int upkeep_factor = 0;
        cave_type *c_ptr;
        object_type *o_ptr;
-       u32b f1 = 0 , f2 = 0 , f3 = 0;
        int temp;
        object_kind *k_ptr;
        const int dec_count = (easy_band ? 2 : 1);
index b7b3c23..a66a8dc 100644 (file)
@@ -134,46 +134,6 @@ static void note(cptr msg)
 
 
 /*
- * Hack -- determine if an item is "wearable" (or a missile)
- */
-static bool wearable_p(object_type *o_ptr)
-{
-       /* Valid "tval" codes */
-       switch (o_ptr->tval)
-       {
-               case TV_SHOT:
-               case TV_ARROW:
-               case TV_BOLT:
-               case TV_BOW:
-               case TV_DIGGING:
-               case TV_HAFTED:
-               case TV_POLEARM:
-               case TV_SWORD:
-               case TV_BOOTS:
-               case TV_GLOVES:
-               case TV_HELM:
-               case TV_CROWN:
-               case TV_SHIELD:
-               case TV_CLOAK:
-               case TV_SOFT_ARMOR:
-               case TV_HARD_ARMOR:
-               case TV_DRAG_ARMOR:
-               case TV_LITE:
-               case TV_AMULET:
-               case TV_RING:
-               case TV_CAPTURE:
-               case TV_CARD:
-               {
-                       return (TRUE);
-               }
-       }
-
-       /* Nope */
-       return (FALSE);
-}
-
-
-/*
  * The following functions are used to load the basic building blocks
  * of savefiles.  They also maintain the "checksum" info for 2.7.0+
  */
@@ -287,8 +247,6 @@ static void strip_bytes(int n)
  */
 static void rd_item(object_type *o_ptr)
 {
-       u32b f1, f2, f3;
-
        char buf[128];
 
 
index c7f6d66..301b998 100644 (file)
@@ -2678,8 +2678,6 @@ static errr term_data_init(term_data *td, int i)
 {
        term *t = &td->t;
 
-       bool fixed = FALSE;
-
        cptr name = angband_term_name[i];
 
        cptr font;
index 8787671..8b64682 100644 (file)
@@ -1915,19 +1915,13 @@ void roff_func(byte attr, cptr str)
 static void spoil_mon_info(cptr fname)
 {
        char buf[1024];
-       int msex, vn, i, j, k, l, n=0;
-       bool breath, magic, sin;
-       cptr p, q;
-       cptr vp[64];
+       int msex, i, l, n=0;
+       bool breath, magic;
        u32b flags1, flags2, flags3, flags4, flags5, flags6, flags7;
 
        u16b why = 2;
        s16b *who;
 
-
-#ifdef JP
-        char            jverb_buf[64];
-#endif
        /* Build the filename */
        path_build(buf, 1024, ANGBAND_DIR_USER, fname);