Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Jan 24, 2014
1 parent 4c617ba commit 36fdc39
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions impl/src/main/java/org/jboss/weld/resources/SharedObjectCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.jboss.weld.bootstrap.api.BootstrapService;
import org.jboss.weld.manager.BeanManagerImpl;
import org.jboss.weld.util.LazyValueHolder;
import org.jboss.weld.util.Types;
import org.jboss.weld.util.collections.WeldCollections;

import com.google.common.cache.CacheBuilder;
Expand Down Expand Up @@ -69,14 +68,6 @@ public LazyValueHolder<Set<Type>> load(Type input) {
}
});

private final LoadingCache<Type, Type> resolvedTypes = CacheBuilder.newBuilder().build(new CacheLoader<Type, Type>() {

@Override
public Type load(Type from) {
return Types.getCanonicalType(from);
}
});

public <T> Set<T> getSharedSet(Set<T> set) {
return getCastCacheValue(sharedSets, set);
}
Expand All @@ -89,10 +80,6 @@ public LazyValueHolder<Set<Type>> getTypeClosureHolder(Type type) {
return getCacheValue(typeClosureHolders, type);
}

public Type getResolvedType(Type type) {
return resolvedTypes.getUnchecked(type);
}

@Override
public void cleanupAfterBoot() {
sharedSets.invalidateAll();
Expand All @@ -103,6 +90,5 @@ public void cleanupAfterBoot() {
@Override
public void cleanup() {
cleanupAfterBoot();
resolvedTypes.invalidateAll();
}
}

0 comments on commit 36fdc39

Please sign in to comment.