WeakRefCloneAssetCache: remove useless "synchronized" (the map is already thread-safe)

This commit is contained in:
shadowislord 2015-03-27 21:48:24 -04:00
parent 06408410cf
commit a3467def1e

View File

@ -155,11 +155,7 @@ public class WeakRefCloneAssetCache implements AssetCache {
}
public <T> T getFromCache(AssetKey<T> key) {
AssetRef smartInfo;
synchronized (smartCache){
smartInfo = smartCache.get(key);
}
AssetRef smartInfo = smartCache.get(key);
if (smartInfo == null) {
return null;
} else {