WeakRefCloneAssetCache: remove useless "synchronized" (the map is already thread-safe)
This commit is contained in:
parent
06408410cf
commit
a3467def1e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user