From 9b37fb98ac8a4c2833f8645aab4cd1f990d6b121 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Sat, 3 Aug 2013 14:45:37 +0200 Subject: [PATCH] Fixed some warnings. --- .../com/sk89q/worldedit/MaxBrushRadiusException.java | 2 +- .../com/sk89q/worldedit/commands/BrushCommands.java | 12 ------------ .../sk89q/worldedit/commands/ToolUtilCommands.java | 2 -- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/MaxBrushRadiusException.java b/src/main/java/com/sk89q/worldedit/MaxBrushRadiusException.java index 8f58bded0..d2dd021cd 100644 --- a/src/main/java/com/sk89q/worldedit/MaxBrushRadiusException.java +++ b/src/main/java/com/sk89q/worldedit/MaxBrushRadiusException.java @@ -6,5 +6,5 @@ package com.sk89q.worldedit; * */ public class MaxBrushRadiusException extends MaxRadiusException { - + private static final long serialVersionUID = 1L; } diff --git a/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java b/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java index a835440bb..ce3cde8e3 100644 --- a/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java @@ -73,8 +73,6 @@ public class BrushCommands { @CommandPermissions("worldedit.brush.sphere") public void sphereBrush(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { - - LocalConfiguration config = we.getConfiguration(); double radius = args.argsLength() > 1 ? args.getDouble(1) : 2; we.checkMaxBrushRadius(radius); @@ -108,8 +106,6 @@ public class BrushCommands { @CommandPermissions("worldedit.brush.cylinder") public void cylinderBrush(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { - - LocalConfiguration config = we.getConfiguration(); double radius = args.argsLength() > 1 ? args.getDouble(1) : 2; we.checkMaxBrushRadius(radius); @@ -146,8 +142,6 @@ public class BrushCommands { @CommandPermissions("worldedit.brush.clipboard") public void clipboardBrush(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { - - LocalConfiguration config = we.getConfiguration(); CuboidClipboard clipboard = session.getClipboard(); @@ -182,8 +176,6 @@ public class BrushCommands { @CommandPermissions("worldedit.brush.smooth") public void smoothBrush(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { - - LocalConfiguration config = we.getConfiguration(); double radius = args.argsLength() > 0 ? args.getDouble(0) : 2; we.checkMaxBrushRadius(radius); @@ -208,8 +200,6 @@ public class BrushCommands { @CommandPermissions("worldedit.brush.ex") public void extinguishBrush(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { - - LocalConfiguration config = we.getConfiguration(); double radius = args.argsLength() > 1 ? args.getDouble(1) : 5; we.checkMaxBrushRadius(radius); @@ -241,8 +231,6 @@ public class BrushCommands { public void gravityBrush(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { - LocalConfiguration config = we.getConfiguration(); - double radius = args.argsLength() > 0 ? args.getDouble(0) : 5; we.checkMaxBrushRadius(radius); diff --git a/src/main/java/com/sk89q/worldedit/commands/ToolUtilCommands.java b/src/main/java/com/sk89q/worldedit/commands/ToolUtilCommands.java index a1c9946f8..15959ec23 100644 --- a/src/main/java/com/sk89q/worldedit/commands/ToolUtilCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/ToolUtilCommands.java @@ -148,8 +148,6 @@ public class ToolUtilCommands { @CommandPermissions("worldedit.brush.options.size") public void size(CommandContext args, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { - - LocalConfiguration config = we.getConfiguration(); int radius = args.getInteger(0); we.checkMaxBrushRadius(radius);