BUG-6647 Increase code coverage and clean up II
[bgpcep.git] / bgp / parser-spi / src / main / java / org / opendaylight / protocol / bgp / parser / spi / pojo / SimpleBGPExtensionProviderContext.java
index eaf3ee8b46f6511315b891fad63d838e2dd1027f..363a932a2ed7c321e34a141f276badea66aecdba 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.protocol.bgp.parser.spi.pojo;
 
-import com.google.common.base.Preconditions;
 import com.google.common.cache.Cache;
 import com.google.common.cache.CacheBuilder;
 import java.util.concurrent.atomic.AtomicReference;
@@ -147,18 +146,6 @@ public class SimpleBGPExtensionProviderContext extends SimpleBGPExtensionConsume
         return this.referenceCache;
     }
 
-    public final synchronized int getMaximumCachedObjects() {
-        return this.maximumCachedObjects;
-    }
-
-    public final synchronized void setMaximumCachedObjects(final int maximumCachedObjects) {
-        Preconditions.checkArgument(maximumCachedObjects >= 0);
-
-        final Cache<Object, Object> newCache = CacheBuilder.newBuilder().maximumSize(maximumCachedObjects).build();
-        newCache.putAll(this.cacheRef.get().asMap());
-        this.cacheRef.set(newCache);
-    }
-
     @Override
     public AutoCloseable registerExtendedCommunitySerializer(final Class<? extends ExtendedCommunity> extendedCommunityClass,
         final ExtendedCommunitySerializer serializer) {