diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-11-30 14:20:23 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-11-30 14:20:23 +0100 |
commit | ac0481981f2a71ceb03210e961b8a9d09bc0ebba (patch) | |
tree | 043137c8ca199a2d548f04f9ec9a7326635c4e5f /samples/samples-impl | |
parent | 2c4c5fcaeb2f5bd0b3b710191bdfde8a03abbc93 (diff) |
Remove dead stores and unused fields
Change-Id: I3ad4e1f1aae9ed52911acbed11d931349ad94da9
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'samples/samples-impl')
-rw-r--r-- | samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java | 3 | ||||
-rw-r--r-- | samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/write/VxlanWriteCustomizer.java | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java b/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java index 133155b6f..cc322a2cc 100644 --- a/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java +++ b/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java @@ -58,8 +58,6 @@ public final class VxlanReadCustomizer implements // provides utility methods to consume results of jvpp api calls JvppReplyConsumer { - // JVpp core. This is the Java API for VPP's core API. - private final FutureJVppCore jVppCore; // Naming context for interfaces // Honeycomb provides a "context" storage for plugins. This storage is used for storing metadata required during // data translation (just like in this plugin). An example of such metadata would be interface identifier. In Honeycomb @@ -75,7 +73,6 @@ public final class VxlanReadCustomizer implements private DumpCacheManager<VxlanTunnelDetailsReplyDump, Integer> dumpManager; public VxlanReadCustomizer(final FutureJVppCore jVppCore, final NamingContext vxlanNamingContext) { - this.jVppCore = jVppCore; this.vxlanNamingContext = vxlanNamingContext; this.dumpManager = new DumpCacheManager.DumpCacheManagerBuilder<VxlanTunnelDetailsReplyDump, Integer>() diff --git a/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/write/VxlanWriteCustomizer.java b/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/write/VxlanWriteCustomizer.java index 77c67b290..fb15f134f 100644 --- a/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/write/VxlanWriteCustomizer.java +++ b/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/write/VxlanWriteCustomizer.java @@ -104,7 +104,7 @@ public final class VxlanWriteCustomizer implements ListWriterCustomizer<VxlanTun vxlanAddDelTunnel.dstAddress = ipAddressToArray(isIpv6, dataBefore.getDst()); // There are other input parameters that are not exposed by our YANG model, default values will be used - final VxlanAddDelTunnelReply replyForWrite = getReplyForWrite(jvppCore.vxlanAddDelTunnel(vxlanAddDelTunnel).toCompletableFuture(), id); + getReplyForWrite(jvppCore.vxlanAddDelTunnel(vxlanAddDelTunnel).toCompletableFuture(), id); // It's important to remove the mapping from context vxlanTunnelNamingContext.removeName(dataBefore.getId(), writeContext.getMappingContext()); } |