From 784698c730cb3a2fc00adb78619f5978e0fca2b8 Mon Sep 17 00:00:00 2001 From: mdb Date: Sat, 26 Jul 2008 20:26:26 +0000 Subject: [PATCH] Untabification, unused variable cleanup. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2346 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/util/DefaultLogProvider.java | 28 ++++++++----------- src/java/com/samskivert/util/QuickSort.java | 2 +- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/java/com/samskivert/util/DefaultLogProvider.java b/src/java/com/samskivert/util/DefaultLogProvider.java index 857a2a11..323caab0 100644 --- a/src/java/com/samskivert/util/DefaultLogProvider.java +++ b/src/java/com/samskivert/util/DefaultLogProvider.java @@ -67,30 +67,28 @@ public class DefaultLogProvider implements LogProvider public synchronized void log ( int level, String moduleName, String message) { - Integer tlevel = _levels.get(moduleName); - if (level >= getLevel(moduleName)) { - System.err.println(formatEntry(moduleName, level, message)); - } + if (level >= getLevel(moduleName)) { + System.err.println(formatEntry(moduleName, level, message)); + } } public synchronized void logStackTrace (int level, String moduleName, Throwable t) { - Integer tlevel = _levels.get(moduleName); - if (level >= getLevel(moduleName)) { - System.err.print(formatEntry(moduleName, level, "")); - t.printStackTrace(System.err); - } + if (level >= getLevel(moduleName)) { + System.err.print(formatEntry(moduleName, level, "")); + t.printStackTrace(System.err); + } } public synchronized void setLevel (String moduleName, int level) { - _levels.put(moduleName, level); + _levels.put(moduleName, level); } public synchronized void setLevel (int level) { - _level = level; - _levels.clear(); + _level = level; + _levels.clear(); } public synchronized int getLevel (String moduleName) @@ -200,13 +198,11 @@ public class DefaultLogProvider implements LogProvider protected HashMap _levels = new HashMap(); /** Used to accompany log messages with time stamps. */ - protected SimpleDateFormat _format = - new SimpleDateFormat("yyyy/MM/dd HH:mm:ss:SSS"); + protected SimpleDateFormat _format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss:SSS"); /** Needed for the more efficient {@link * SimpleDateFormat#format(Date,StringBuffer,FieldPosition)}. */ - protected FieldPosition _fpos = - new FieldPosition(SimpleDateFormat.DATE_FIELD); + protected FieldPosition _fpos = new FieldPosition(SimpleDateFormat.DATE_FIELD); /** Contains the dimensions of the terminal window in which we're * running, if it was possible to obtain them. Otherwise, it contains diff --git a/src/java/com/samskivert/util/QuickSort.java b/src/java/com/samskivert/util/QuickSort.java index 9c83eb86..d941d366 100644 --- a/src/java/com/samskivert/util/QuickSort.java +++ b/src/java/com/samskivert/util/QuickSort.java @@ -385,7 +385,7 @@ public class QuickSort return; } - T e1, e2, t; + T e1, e2; // if this is a two element file, do a simple sort on it if (hi0 - lo0 == 1) {