From c0986a1f89f2b57df57dca6a6483e8b064aba2bf Mon Sep 17 00:00:00 2001 From: bm01 Date: Fri, 8 Mar 2013 02:09:43 +0100 Subject: [PATCH] Removed unneeded null checks --- src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java | 4 ---- 1 file changed, 4 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 9e370d820..b1dbbd444 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java @@ -94,10 +94,6 @@ public class SkillUtils { * @param ability The ability to watch cooldowns for */ public static void watchCooldown(McMMOPlayer mcMMOPlayer, AbilityType ability) { - if (mcMMOPlayer == null || ability == null) { - return; - } - Player player = mcMMOPlayer.getPlayer(); if (!mcMMOPlayer.getAbilityInformed(ability) && cooldownOver(mcMMOPlayer.getProfile().getSkillDATS(ability) * Misc.TIME_CONVERSION_FACTOR, ability.getCooldown(), player)) {