summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-21 15:34:23 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:07:55 +0100
commit76497637d54dc3e185a1ca1e7a9d0db5350f2d16 (patch)
treea0086daa9302ad4f0d009e229b80ec9d1123d2e2
parent741db2f0e31624b64d6887e9765109281af800a2 (diff)
Remove unused HOOK_APPLY_MAGIC
-rw-r--r--src/defines.h1
-rw-r--r--src/object2.cc8
2 files changed, 0 insertions, 9 deletions
diff --git a/src/defines.h b/src/defines.h
index 0479c2aa..76c1ccc7 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -4394,7 +4394,6 @@
#define HOOK_LOAD_END 61
#define HOOK_RECALL 62
#define HOOK_BODY_PARTS 65
-#define HOOK_APPLY_MAGIC 66
#define HOOK_PLAYER_EXP 67
#define HOOK_BIRTH 68
#define HOOK_MON_ASK_HELP 69
diff --git a/src/object2.cc b/src/object2.cc
index 4a3f295c..f1186291 100644
--- a/src/object2.cc
+++ b/src/object2.cc
@@ -2598,8 +2598,6 @@ static void a_m_aux_1(object_type *o_ptr, int level, int power)
}
/* Some special cases */
- if (process_hooks(HOOK_APPLY_MAGIC, "(O,d,d)", o_ptr, level, power))
- return;
switch (o_ptr->tval)
{
case TV_TRAPKIT:
@@ -2745,8 +2743,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
}
/* Analyze type */
- if (process_hooks(HOOK_APPLY_MAGIC, "(O,d,d)", o_ptr, level, power))
- return;
switch (o_ptr->tval)
{
case TV_CLOAK:
@@ -2828,8 +2824,6 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
}
/* Apply magic (good or bad) according to type */
- if (process_hooks(HOOK_APPLY_MAGIC, "(O,d,d)", o_ptr, level, power))
- return;
switch (o_ptr->tval)
{
case TV_RING:
@@ -3312,8 +3306,6 @@ static void a_m_aux_4(object_type *o_ptr, int level, int power)
}
/* Apply magic (good or bad) according to type */
- if (process_hooks(HOOK_APPLY_MAGIC, "(O,d,d)", o_ptr, level, power))
- return;
switch (o_ptr->tval)
{
case TV_BOOK: