aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
diff options
context:
space:
mode:
authorAndrew Su <asu@redhat.com>2011-01-20 14:54:27 -0500
committerAndrew Su <asu@redhat.com>2011-01-20 14:54:27 -0500
commitbb6b80c486570b23c058ea0ff9ce97ad3834a53a (patch)
tree5c04165d776a877628fa6c00418f02b383d7aa8d /plugin/icedteanp/java/sun/applet/PluginObjectStore.java
parentef785a49ec6f4dd970098f9a2a0ed7d69c7390c2 (diff)
Remove dead, commented, unused code.
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginObjectStore.java')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginObjectStore.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginObjectStore.java b/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
index a0c6f6e..a39b6d1 100644
--- a/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
+++ b/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
@@ -38,8 +38,6 @@ exception statement from your version. */
package sun.applet;
import java.util.*;
-import java.lang.reflect.*;
-import java.io.*;
public class PluginObjectStore {
private static HashMap<Integer, Object> objects = new HashMap<Integer, Object>();
@@ -87,36 +85,24 @@ public class PluginObjectStore {
objects.put(nextUniqueIdentifier, object);
counts.put(nextUniqueIdentifier, 1);
identifiers.put(object, nextUniqueIdentifier);
- //System.out.println("JAVA ADDED: " + nextUniqueIdentifier);
- //System.out.println("JAVA REFERENCED: " + nextUniqueIdentifier
- // + " to: 1");
nextUniqueIdentifier++;
} else {
counts.put(identifier, counts.get(identifier) + 1);
- //System.out.println("JAVA REFERENCED: " + identifier +
- // " to: " + counts.get(identifier));
}
}
public void unreference(int identifier) {
Integer currentCount = counts.get(identifier);
if (currentCount == null) {
- //System.out.println("ERROR UNREFERENCING: " + identifier);
return;
}
if (currentCount == 1) {
- //System.out.println("JAVA DEREFERENCED: " + identifier
- // + " to: 0");
Object object = objects.get(identifier);
objects.remove(identifier);
counts.remove(identifier);
identifiers.remove(object);
- //System.out.println("JAVA REMOVED: " + identifier);
} else {
counts.put(identifier, currentCount - 1);
- //System.out.println("JAVA DEREFERENCED: " +
- // identifier + " to: " +
- // counts.get(identifier));
}
}