Nixed a bunch of unused variables.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2347 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2008-07-26 22:02:39 +00:00
parent 784698c730
commit 10eeeca31b
10 changed files with 9 additions and 11 deletions
@@ -376,7 +376,6 @@ public class JDBCUtil
String column)
throws SQLException
{
boolean matched = false;
ResultSet rs = conn.getMetaData().getIndexInfo("", "", table, false, true);
while (rs.next()) {
String tname = rs.getString("TABLE_NAME");
@@ -32,7 +32,7 @@ public class CDDBTest
CDDB cddb = new CDDB();
try {
String rsp = cddb.connect(hostname);
/* String rsp = */ cddb.connect(hostname);
// set the timeout to 30 seconds
cddb.setTimeout(30*1000);
@@ -33,7 +33,7 @@ public class LabelDemo extends JPanel
// create our labels
String text = "The quick brown fox jumped over the lazy dog. " +
"He then popped into the butcher's and picked up some mutton.";
Font font = new Font("Courier", Font.PLAIN, 10);
// Font font = new Font("Courier", Font.PLAIN, 10);
int idx = 0;
_labels[idx] = new Label("\u307e\u305b\u3002Amores\u30d1\u30a4\u30e9");
@@ -554,7 +554,7 @@ public class SwingUtil
int w = img.getWidth(null);
int h = img.getHeight(null);
Dimension d = tk.getBestCursorSize(w, h);
int colors = tk.getMaximumCursorColors();
// int colors = tk.getMaximumCursorColors();
// Log.debug("Creating custom cursor [desiredSize=" + w + "x" + h +
// ", bestSize=" + d.width + "x" + d.height +
// ", maxcolors=" + colors + "].");
@@ -90,7 +90,6 @@ public class Histogram
*/
public String summarize ()
{
long total = 0;
StringBuilder buf = new StringBuilder();
buf.append(_count).append(":");
for (int ii = 0; ii < _buckets.length; ii++) {
@@ -265,7 +265,7 @@ public class ObserverList<T> extends ArrayList<T>
_snap.length > (ocount << 3)) {
_snap = (T[])new Object[ocount];
}
Object[] obs = toArray(_snap);
toArray(_snap);
for (int ii = 0; ii < ocount; ii++) {
if (!checkedApply(obop, _snap[ii])) {
remove(_snap[ii]);
+1 -1
View File
@@ -260,7 +260,7 @@ public abstract class Predicate<T>
{
// oh god, oh god: we iterate and count
int size = 0;
for (E elem : this) {
for (Iterator<E> iter = iterator(); iter.hasNext(); ) {
size++;
}
return size;
@@ -75,7 +75,7 @@ public class HashIntMapTest extends TestCase
// check the table contents
for (int i = 10; i < 20; i++) {
Integer val = table.get(i);
Integer val = map.get(i);
assertTrue("get(" + i + ") == " + i, val.intValue() == i);
}
@@ -38,8 +38,8 @@ public class ObserverListTest extends TestCase
public void runTest ()
{
// Log.info("Testing safe list.");
ObserverList<TestObserver> list;
testList(list = ObserverList.newSafeInOrder());
ObserverList<TestObserver> list = ObserverList.newSafeInOrder();
testList(list);
// Log.info("Testing unsafe list.");
testList(list = ObserverList.newFastUnsafe());
@@ -34,7 +34,7 @@ public class SystemInfoDemo
// allocate a bit of data
System.out.println("\nAllocating test data.");
for (int ii = 0; ii < 10000; ii++) {
int[] data = new int[100];
@SuppressWarnings("unused") int[] data = new int[100];
}
// update and output the latest system information