From 07331bfbf3fc2096241194a491047a13af9f2cb4 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 21 Dec 2014 15:45:42 +0100 Subject: Remove unused HOOK_LEARN_ABILITY --- lib/edit/ab_info.txt | 2 -- lib/mods/theme/edit/ab_info.txt | 2 -- src/defines.h | 1 - src/skills.cc | 4 ---- 4 files changed, 9 deletions(-) diff --git a/lib/edit/ab_info.txt b/lib/edit/ab_info.txt index 7b9aa152..c60446e6 100644 --- a/lib/edit/ab_info.txt +++ b/lib/edit/ab_info.txt @@ -22,8 +22,6 @@ # E:excluding ability:excluding ability -# If you need more sophisticated prereqs use the HOOK_LEARN_ABILITY - # Version stamp (required) # Do not forget to update misc.txt with an entry like the following : diff --git a/lib/mods/theme/edit/ab_info.txt b/lib/mods/theme/edit/ab_info.txt index 4272776a..8c6cc52e 100644 --- a/lib/mods/theme/edit/ab_info.txt +++ b/lib/mods/theme/edit/ab_info.txt @@ -22,8 +22,6 @@ # E:excluding ability:excluding ability -# If you need more sophisticated prereqs use the HOOK_LEARN_ABILITY - # Version stamp (required) # Do not forget to update misc.txt with an entry like the following : diff --git a/src/defines.h b/src/defines.h index d66a6c21..5b334d43 100644 --- a/src/defines.h +++ b/src/defines.h @@ -4392,7 +4392,6 @@ #define HOOK_BODY_PARTS 65 #define HOOK_BIRTH 68 #define HOOK_MON_ASK_HELP 69 -#define HOOK_LEARN_ABILITY 70 #define HOOK_GAME_START 72 #define HOOK_TAKEOFF 73 #define HOOK_FORBID_TRAVEL 75 diff --git a/src/skills.cc b/src/skills.cc index 12c1fb3d..63c9ad72 100644 --- a/src/skills.cc +++ b/src/skills.cc @@ -1515,10 +1515,6 @@ bool_ can_learn_ability(int ab) } } - /* Do the script allow us? */ - if (process_hooks(HOOK_LEARN_ABILITY, "(d)", ab)) - return FALSE; - return TRUE; } -- cgit v1.2.3