From 7059fdfd9ecd298286e67c14befd8012335ae0c3 Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 6 Jun 2011 11:29:11 -0700 Subject: [PATCH] Removed old/redundant code. --- .../bukkit/WorldGuardBlockListener.java | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java index 34029a4c..ec92f36b 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java @@ -36,7 +36,6 @@ import com.sk89q.worldguard.blacklist.events.*; import com.sk89q.worldguard.protection.ApplicableRegionSet; import static com.sk89q.worldguard.bukkit.BukkitUtil.*; -import static com.sk89q.worldguard.bukkit.SpongeUtil.*; /** * The listener for block events. @@ -611,38 +610,4 @@ public void onLeavesDecay(LeavesDecayEvent event) { event.setCancelled(true); } } - /** - * Drops a sign item and removes a sign. - * - * @param block - */ - private void dropSign(Block block) { - block.setTypeId(0); - block.getWorld().dropItemNaturally(block.getLocation(), - new ItemStack(Material.SIGN, 1)); - } - - /** - * Remove water around a sponge. - * - * @param world - * @param ox - * @param oy - * @param oz - */ - private void clearSpongeWater(World world, int ox, int oy, int oz) { - - ConfigurationManager cfg = plugin.getGlobalConfiguration(); - WorldConfiguration wcfg = cfg.get(world); - - for (int cx = -wcfg.spongeRadius; cx <= wcfg.spongeRadius; cx++) { - for (int cy = -wcfg.spongeRadius; cy <= wcfg.spongeRadius; cy++) { - for (int cz = -wcfg.spongeRadius; cz <= wcfg.spongeRadius; cz++) { - if (isBlockWater(world, ox + cx, oy + cy, oz + cz)) { - world.getBlockAt(ox + cx, oy + cy, oz + cz).setTypeId(0); - } - } - } - } - } }