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) {
|
public <T> T getFromCache(AssetKey<T> key) {
|
||||||
AssetRef smartInfo;
|
AssetRef smartInfo = smartCache.get(key);
|
||||||
synchronized (smartCache){
|
|
||||||
smartInfo = smartCache.get(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (smartInfo == null) {
|
if (smartInfo == null) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user