Skip to content

Commit 3e148a8

Browse files
committed
Remove unused local.
1 parent a4b438c commit 3e148a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/rx/subjects/ReplaySubject.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,7 @@ public boolean isEmpty() {
717717
@SuppressWarnings("unchecked")
718718
public T[] toArray(T[] a) {
719719
List<T> list = new ArrayList<T>();
720-
NodeList.Node<Object> l = head();
721-
NodeList.Node<Object> next = l.next;
720+
NodeList.Node<Object> next = head().next;
722721
while (next != null) {
723722
Object o = leaveTransform.call(next.value);
724723

@@ -727,7 +726,6 @@ public T[] toArray(T[] a) {
727726
} else {
728727
list.add((T)o);
729728
}
730-
l = next;
731729
next = next.next;
732730
}
733731
return list.toArray(a);

0 commit comments

Comments
 (0)