Remove SimpleMapCache#getXtrIdTable() 43/50443/5
authorLorand Jakab <lojakab@cisco.com>
Tue, 17 Jan 2017 19:43:09 +0000 (21:43 +0200)
committerLorand Jakab <lojakab@cisco.com>
Tue, 17 Jan 2017 19:43:09 +0000 (21:43 +0200)
Change-Id: I53394480d41a5f0eb6356dfed24e293fbc5dfc19
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
mappingservice/mapcache/src/main/java/org/opendaylight/lispflowmapping/mapcache/SimpleMapCache.java

index a2e88fcf4245c044651c351854e654b65c16a2c9..9645ee8ee7934650846a579ef73a41139e3e7fe4 100644 (file)
@@ -67,10 +67,6 @@ public class SimpleMapCache implements ILispMapCache {
         return table;
     }
 
-    private ILispDAO getXtrIdTable(Eid eid, ILispDAO dao) {
-        return (ILispDAO) dao.getSpecific(eid, SubKeys.XTRID_RECORDS);
-    }
-
     private ILispDAO getOrInstantiateXtrIdTable(Eid eid, ILispDAO dao) {
         ILispDAO table = (ILispDAO) dao.getSpecific(eid, SubKeys.XTRID_RECORDS);
         if (table == null) {
@@ -199,7 +195,7 @@ public class SimpleMapCache implements ILispMapCache {
         if (table == null) {
             return;
         }
-        ILispDAO xtrIdTable = getXtrIdTable(key, table);
+        ILispDAO xtrIdTable = (ILispDAO) table.getSpecific(key, SubKeys.XTRID_RECORDS);
         if (xtrIdTable == null) {
             return;
         }
@@ -213,7 +209,7 @@ public class SimpleMapCache implements ILispMapCache {
         if (table == null) {
             return;
         }
-        ILispDAO xtrIdTable = getXtrIdTable(key, table);
+        ILispDAO xtrIdTable = (ILispDAO) table.getSpecific(key, SubKeys.XTRID_RECORDS);
         if (xtrIdTable == null) {
             return;
         }