OSDN Git Service

[Refactor] #define ALLOW_EASY_OPEN による分岐処理削除。 / Delete #define branch by ALLOW_EASY_OPEN.
[hengband/hengband.git] / src / util.c
index 2d29d42..9be0b61 100644 (file)
@@ -3818,8 +3818,6 @@ QUANTITY get_quantity(cptr prompt, QUANTITY max)
                return (amt);
        }
 
-#ifdef ALLOW_REPEAT /* TNB */
-
        /* Get the item index */
        result = repeat_pull(&code);
        amt = (QUANTITY)code;
@@ -3835,8 +3833,6 @@ QUANTITY get_quantity(cptr prompt, QUANTITY max)
                return (amt);
        }
 
-#endif /* ALLOW_REPEAT -- TNB */
-
        /* Build a prompt if needed */
        if (!prompt)
        {
@@ -3883,12 +3879,8 @@ QUANTITY get_quantity(cptr prompt, QUANTITY max)
        /* Enforce the minimum */
        if (amt < 0) amt = 0;
 
-#ifdef ALLOW_REPEAT /* TNB */
-
        if (amt) repeat_push((COMMAND_CODE)amt);
 
-#endif /* ALLOW_REPEAT -- TNB */
-
        /* Return the result */
        return (amt);
 }
@@ -4844,8 +4836,6 @@ int get_keymap_dir(char ch)
 }
 
 
-#ifdef ALLOW_REPEAT /* TNB */
-
 #define REPEAT_MAX             20
 
 /* Number of chars saved */
@@ -4921,8 +4911,6 @@ void repeat_check(void)
        }
 }
 
-#endif /* ALLOW_REPEAT -- TNB */
-
 
 #ifdef SORT_R_INFO