From 9b9e7a870daf0ad8bcfb80eb9febce3c87c86695 Mon Sep 17 00:00:00 2001 From: tpietzsch Date: Wed, 23 Oct 2024 17:41:40 +0200 Subject: [PATCH] Remove unused argument --- .../imglib2/neighborsearch/RadiusNeighborSearchOnKDTree.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/imglib2/neighborsearch/RadiusNeighborSearchOnKDTree.java b/src/main/java/net/imglib2/neighborsearch/RadiusNeighborSearchOnKDTree.java index 1f0b6e04b..96af9378f 100644 --- a/src/main/java/net/imglib2/neighborsearch/RadiusNeighborSearchOnKDTree.java +++ b/src/main/java/net/imglib2/neighborsearch/RadiusNeighborSearchOnKDTree.java @@ -75,10 +75,10 @@ private RadiusNeighborSearchOnKDTree( final RadiusNeighborSearchOnKDTree< T > ot public void search( final RealLocalizable reference, final double radius, final boolean sortResults ) { impl.search( reference, radius, sortResults ); - fillMatches( 0, impl.numNeighbors() - 1 ); + fillMatches( impl.numNeighbors() - 1 ); } - private void fillMatches( final int first, final int last ) + private void fillMatches( final int last ) { while ( matches.size() < last + 1 ) matches.add( tree.createNode() );