From c1161da6de1c6cba2fb5c91fb56f9a4201d235fb Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 6 Mar 2013 12:32:13 -0500 Subject: [PATCH] We don't use this function anymore. --- .../gmail/nossr50/util/skills/SkillUtils.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java b/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java index 8f3cbf82d..8b1f8e0bf 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java @@ -460,22 +460,6 @@ public class SkillUtils { } } - /** - * Check if a skill level is higher than the max bonus level of the ability. - * - * @param skillLevel Skill level to check - * @param maxLevel Max level of the ability - * @return whichever value is lower - */ - public static int skillCheck(int skillLevel, int maxLevel) { - // TODO: Could we just use Math.min(skillLevel, maxLevel) here? - if (skillLevel > maxLevel) { - return maxLevel; - } - - return skillLevel; - } - public static void handleAbilitySpeedIncrease(Player player) { if (HiddenConfig.getInstance().useEnchantmentBuffs()) { ItemStack heldItem = player.getItemInHand();