From 911b0eda3c744c6822134b088fd3da20e793cc0d Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Mon, 9 Apr 2018 07:13:24 +0200 Subject: Remove unused method parameters Change-Id: Ib6bb2b3378c9bb883bfa9bd1348813f7845b6b59 Signed-off-by: Marek Gradzki --- .../src/main/java/io/fd/hc2vpp/routing/trait/Ipv4RoutePathParser.java | 4 ++-- .../src/main/java/io/fd/hc2vpp/routing/trait/Ipv6RoutePathParser.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'routing/routing-impl') diff --git a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv4RoutePathParser.java b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv4RoutePathParser.java index 31d371497..6f189af13 100644 --- a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv4RoutePathParser.java +++ b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv4RoutePathParser.java @@ -47,14 +47,14 @@ public interface Ipv4RoutePathParser extends RouteMapper { final Ipv4RouteNamesFactory namesFactory) { if (parsedHops.size() == 1) { final FibPath path = parsedHops.get(0); - if (RouteMapper.INSTANCE.isTableLookup(path)) return tableLookup(path); + if (RouteMapper.INSTANCE.isTableLookup(path)) return tableLookup(); if (RouteMapper.INSTANCE.isSpecialHop(path)) return specialHop(path); return simpleHop(path, interfaceContext, mappingContext); } return hopList(routeName, parsedHops, interfaceContext, routeHopContext, mappingContext, namesFactory); } - static NextHopOptions tableLookup(final FibPath fibPath) { + static NextHopOptions tableLookup() { return new TableLookupBuilder() .setTableLookupParams( new TableLookupParamsBuilder() diff --git a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv6RoutePathParser.java b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv6RoutePathParser.java index 280a515e1..1c7243ce8 100644 --- a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv6RoutePathParser.java +++ b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/Ipv6RoutePathParser.java @@ -47,14 +47,14 @@ public interface Ipv6RoutePathParser extends RouteMapper { final Ipv6RouteNamesFactory namesFactory) { if (parsedHops.size() == 1) { final FibPath path = parsedHops.get(0); - if (RouteMapper.INSTANCE.isTableLookup(path)) return tableLookup(path); + if (RouteMapper.INSTANCE.isTableLookup(path)) return tableLookup(); if (RouteMapper.INSTANCE.isSpecialHop(path)) return specialHop(path); return simpleHop(path, interfaceContext, mappingContext); } return hopList(routeName, parsedHops, interfaceContext, routeHopContext, mappingContext, namesFactory); } - static NextHopOptions tableLookup(final FibPath fibPath) { + static NextHopOptions tableLookup() { return new TableLookupBuilder() .setTableLookupParams( new TableLookupParamsBuilder() -- cgit 1.2.3-korg