Author: toad
Date: 2007-05-31 13:02:58 +0000 (Thu, 31 May 2007)
New Revision: 13413

Modified:
   trunk/freenet/src/freenet/client/ArchiveManager.java
Log:
Remove unnecessary locking

Modified: trunk/freenet/src/freenet/client/ArchiveManager.java
===================================================================
--- trunk/freenet/src/freenet/client/ArchiveManager.java        2007-05-31 
04:23:48 UTC (rev 13412)
+++ trunk/freenet/src/freenet/client/ArchiveManager.java        2007-05-31 
13:02:58 UTC (rev 13413)
@@ -134,7 +134,7 @@
         * @return A Bucket containing the data requested, or null.
         * @throws ArchiveFailureException 
         */
-       public synchronized Bucket getCached(FreenetURI key, String filename) 
throws ArchiveFailureException {
+       public Bucket getCached(FreenetURI key, String filename) throws 
ArchiveFailureException {
                if(logMINOR) Logger.minor(this, "Fetch cached: "+key+ ' ' 
+filename);
                ArchiveKey k = new ArchiveKey(key, filename);
                ArchiveStoreItem asi = null;
@@ -152,7 +152,7 @@
         * Remove a file from the cache.
         * @param item The ArchiveStoreItem to remove.
         */
-       synchronized void removeCachedItem(ArchiveStoreItem item) {
+       void removeCachedItem(ArchiveStoreItem item) {
                synchronized (storedData) {
                        storedData.removeKey(item.key); 
                }


Reply via email to