Skip to content

Commit 2f3eee2

Browse files
committed
Remove unsed sList array.
1 parent 29f3f83 commit 2f3eee2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

base/core/src/main/java/org/openscience/cdk/graph/PathTools.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ public static List<IAtom> getShortestPath(IAtomContainer atomContainer, IAtom st
460460
}
461461
dist[atomContainer.indexOf(start)] = 0;
462462

463-
List<IAtom> sList = new ArrayList<IAtom>();
464463
List<Integer> qList = new ArrayList<Integer>();
465464
for (int i = 0; i < natom; i++)
466465
qList.add(i);
@@ -477,8 +476,7 @@ public static List<IAtom> getShortestPath(IAtomContainer atomContainer, IAtom st
477476
index = tmp;
478477
}
479478
}
480-
qList.remove(qList.indexOf(index));
481-
sList.add(atomContainer.getAtom(index));
479+
qList.remove(index);
482480
if (index == endNumber) break;
483481

484482
// relaxation

0 commit comments

Comments
 (0)