From 1d5c28f37f16e477fc15c4baf0cdc29cd2ccffcb Mon Sep 17 00:00:00 2001 From: Redecouverte Date: Sat, 26 Feb 2011 00:20:40 +0100 Subject: [PATCH] optimized getAffectedRegion() --- .../sk89q/worldguard/protection/ApplicableRegionSet.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java b/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java index cd053c46..dae1af18 100644 --- a/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java +++ b/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java @@ -257,14 +257,6 @@ private String getAreaFlag(String name, String subname, Boolean inherit, LocalPl */ public ProtectedRegion getAffectedRegion() { - int appSize = applicable.size(); - - if (appSize < 1) { - return null; - } else if (appSize < 2) { - return applicable.get(0); - } - ProtectedRegion affectedRegion = null; Iterator iter = applicable.iterator();