Remove redundant exception and instantiation
This commit is contained in:
parent
810cd476d5
commit
fd59d244df
1 changed files with 1 additions and 8 deletions
|
@ -16,13 +16,6 @@ public class PathSegment
|
||||||
|
|
||||||
public boolean isDead;
|
public boolean isDead;
|
||||||
|
|
||||||
static class RouteComplete extends Exception
|
|
||||||
{
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 810456465120286110L;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
final PathGridCache pgc;
|
final PathGridCache pgc;
|
||||||
|
|
||||||
public PathSegment(PathGridCache myPGC, List<IPathItem> open, Set<IPathItem> semiOpen, Set<IPathItem> closed)
|
public PathSegment(PathGridCache myPGC, List<IPathItem> open, Set<IPathItem> semiOpen, Set<IPathItem> closed)
|
||||||
|
@ -58,7 +51,7 @@ public class PathSegment
|
||||||
// close the semi open.
|
// close the semi open.
|
||||||
if ( !semiOpen.contains( pi ) )
|
if ( !semiOpen.contains( pi ) )
|
||||||
{
|
{
|
||||||
boolean worked = false;
|
boolean worked;
|
||||||
|
|
||||||
if ( flags.contains( GridFlags.COMPRESSED_CHANNEL ) )
|
if ( flags.contains( GridFlags.COMPRESSED_CHANNEL ) )
|
||||||
worked = useDenseChannel( pi );
|
worked = useDenseChannel( pi );
|
||||||
|
|
Loading…
Reference in a new issue