Skip to content

Commit

Permalink
remove unnecessary overrides of deprecated copyCursor method
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Oct 18, 2024
1 parent 453deb3 commit a12f886
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
6 changes: 0 additions & 6 deletions src/main/java/net/imglib2/roi/labeling/LabelRegionCursor.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,4 @@ public LabelRegionCursor copy()
{
return new LabelRegionCursor( this );
}

@Override
public LabelRegionCursor copyCursor()
{
return copy();
}
}
8 changes: 1 addition & 7 deletions src/main/java/net/imglib2/roi/util/SamplingCursor.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ public T getType()
@Override
public SamplingCursor< T > copy()
{
return new SamplingCursor< T >( source.copyCursor(), target.copyRandomAccess() );
}

@Override
public SamplingCursor< T > copyCursor()
{
return copy();
return new SamplingCursor<>( source.copy(), target.copy() );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,4 @@ public IterationCodeCursor copy()
{
return new IterationCodeCursor( this );
}

@Override
public IterationCodeCursor copyCursor()
{
return copy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,4 @@ public IterationCodeListCursor copy()
{
return new IterationCodeListCursor( this );
}

@Override
public IterationCodeListCursor copyCursor()
{
return copy();
}
}

0 comments on commit a12f886

Please sign in to comment.