Code cleanup.

This commit is contained in:
sk89q 2010-12-30 00:51:12 -08:00
parent 0021e789bc
commit 16bbd30209
5 changed files with 1 additions and 25 deletions

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
import java.util.logging.Logger;
import java.util.logging.Level;
import java.util.Set; import java.util.Set;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map; import java.util.Map;

View File

@ -93,8 +93,7 @@ public FileLoggerHandler(String pathPattern, int cacheSize) {
private String buildPath(String playerName) { private String buildPath(String playerName) {
GregorianCalendar calendar = new GregorianCalendar(); GregorianCalendar calendar = new GregorianCalendar();
Pattern p = Pattern.compile("%."); Matcher m = pattern.matcher(pathPattern);
Matcher m = p.matcher(pathPattern);
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
// Pattern replacements // Pattern replacements

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
import java.util.logging.Logger;
import java.util.logging.Level;
import java.util.logging.Handler; import java.util.logging.Handler;
import java.util.logging.LogRecord; import java.util.logging.LogRecord;

View File

@ -25,7 +25,6 @@
import java.util.ArrayList; import java.util.ArrayList;
import java.net.URL; import java.net.URL;
import java.io.*; import java.io.*;
import java.lang.reflect.*;
/** /**
* Entry point for the plugin for hey0's mod. * Entry point for the plugin for hey0's mod.
@ -54,8 +53,6 @@ public WorldGuard() {
*/ */
@Override @Override
public void initialize() { public void initialize() {
PluginLoader loader = etc.getLoader();
List<String> missingFeatures = new ArrayList<String>(); List<String> missingFeatures = new ArrayList<String>();
registerHook("COMMAND", PluginListener.Priority.MEDIUM); registerHook("COMMAND", PluginListener.Priority.MEDIUM);

View File

@ -17,15 +17,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Logger; import java.util.logging.Logger;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.Set; import java.util.Set;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map; import java.util.Map;
import java.util.HashMap; import java.util.HashMap;
import java.util.Random;
import java.io.*; import java.io.*;
import com.sk89q.worldedit.blocks.BlockType; import com.sk89q.worldedit.blocks.BlockType;
@ -39,19 +36,7 @@ public class WorldGuardListener extends PluginListener {
* Logger. * Logger.
*/ */
private static final Logger logger = Logger.getLogger("Minecraft.WorldGuard"); private static final Logger logger = Logger.getLogger("Minecraft.WorldGuard");
/**
* Timer for threading.
*/
private static final Timer timer = new Timer();
/**
* Random number generator.
*/
private static Random rand = new Random();
/**
* Plugin host.
*/
private WorldGuard plugin;
/** /**
* Properties file for WorldGuard. * Properties file for WorldGuard.
*/ */
@ -109,7 +94,6 @@ public class WorldGuardListener extends PluginListener {
* @param plugin * @param plugin
*/ */
public WorldGuardListener(WorldGuard plugin) { public WorldGuardListener(WorldGuard plugin) {
this.plugin = plugin;
postReload(); postReload();
} }