From da400ffdeb75e75e61cb9ab5d499fed28b1ac9b4 Mon Sep 17 00:00:00 2001 From: aumgn Date: Mon, 12 Nov 2012 10:36:44 +0100 Subject: [PATCH] Remove deprecated Region#contract/expand(Vector) methods Those methods hid varargs versions which are not deprecated --- .../worldedit/commands/SelectionCommands.java | 2 -- .../worldedit/regions/AbstractRegion.java | 10 ---------- .../com/sk89q/worldedit/regions/Region.java | 20 ------------------- 3 files changed, 32 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java b/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java index e9e7bc443..10e173b80 100644 --- a/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java @@ -271,7 +271,6 @@ public class SelectionCommands { max = 3 ) @CommandPermissions("worldedit.selection.expand") - @SuppressWarnings("deprecation") public void expand(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { @@ -348,7 +347,6 @@ public class SelectionCommands { max = 3 ) @CommandPermissions("worldedit.selection.contract") - @SuppressWarnings("deprecation") public void contract(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { diff --git a/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java b/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java index 948bc881a..506b7e867 100644 --- a/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java +++ b/src/main/java/com/sk89q/worldedit/regions/AbstractRegion.java @@ -57,16 +57,6 @@ public abstract class AbstractRegion implements Region { this.world = world; } - @Deprecated - public void expand(Vector change) throws RegionOperationException { - expand(new Vector[] { change }); - } - - @Deprecated - public void contract(Vector change) throws RegionOperationException { - contract(new Vector[] { change }); - } - public void shift(Vector change) throws RegionOperationException { expand(change); contract(change); diff --git a/src/main/java/com/sk89q/worldedit/regions/Region.java b/src/main/java/com/sk89q/worldedit/regions/Region.java index ccfad2b9b..b64d4b46b 100644 --- a/src/main/java/com/sk89q/worldedit/regions/Region.java +++ b/src/main/java/com/sk89q/worldedit/regions/Region.java @@ -81,16 +81,6 @@ public interface Region extends Iterable, Cloneable { */ public int getLength(); - /** - * Expand the region. - * - * @deprecated will be seamlessly replaced by {@link #expand(Vector...) - * @param change - * @throws RegionOperationException - */ - @Deprecated - public void expand(Vector change) throws RegionOperationException; - /** * Expand the region. * @@ -99,16 +89,6 @@ public interface Region extends Iterable, Cloneable { */ public void expand(Vector... changes) throws RegionOperationException; - /** - * Contract the region. - * - * @deprecated will be seamlessly replaced by {@link #contract(Vector...) - * @param change - * @throws RegionOperationException - */ - @Deprecated - public void contract(Vector change) throws RegionOperationException; - /** * Contract the region. *