Author: nextgens
Date: 2007-11-20 21:23:07 +0000 (Tue, 20 Nov 2007)
New Revision: 15889

Modified:
   trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
   trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
Log:
BookmarkToadlet: remove some dead code

Modified: trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java   
2007-11-20 21:19:22 UTC (rev 15888)
+++ trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java   
2007-11-20 21:23:07 UTC (rev 15889)
@@ -15,7 +15,6 @@
 import freenet.l10n.L10n;
 import freenet.node.NodeClientCore;
 import freenet.client.HighLevelSimpleClient;
-import freenet.support.Fields;
 import freenet.support.HTMLNode;
 import freenet.support.URLDecoder;
 import freenet.support.URLEncodedFormatException;

Modified: trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java        
2007-11-20 21:19:22 UTC (rev 15888)
+++ trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java        
2007-11-20 21:23:07 UTC (rev 15889)
@@ -89,7 +89,6 @@
         //FIXME: for some reason that doesn't work... if someone wants to fix 
it ;)
         Pattern pattern = 
Pattern.compile("/(.*/)([^/]*)=(|=)*([A-Z]{3}@.*).*");
         FreenetURI key;
-        clear();
         for (int i = 0; i < newVals.length; i++) {
             try {
                 Matcher matcher = pattern.matcher(newVals[i]);
@@ -299,14 +298,6 @@
         bookmarks.remove(path);
     }

-    public void clear() {
-        removeBookmark("/");
-        synchronized (bookmarks) {
-            bookmarks.clear();
-            bookmarks.put("/", MAIN_CATEGORY);
-        }
-    }
-
     public FreenetURI[] getBookmarkURIs() {
         BookmarkItems items = MAIN_CATEGORY.getAllItems();
         FreenetURI[] uris = new FreenetURI[items.size()];


Reply via email to