Skip to content

Commit c9370aa

Browse files
authored
Remove End() as unused
1 parent e002329 commit c9370aa

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

behavioral/iterator.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ type Iterator interface {
1414

1515
// Next increments the iterator to point to the next element.
1616
Next()
17-
18-
// End sets the iterator to point to the end element.
19-
End()
2017
}
2118

2219
// ArrayIterator is an iterator which iterates over an array.
@@ -49,8 +46,3 @@ func (i *ArrayIterator) Next() {
4946
i.index++
5047
}
5148
}
52-
53-
// End sets the iterator to point to the end element.
54-
func (i *ArrayIterator) End() {
55-
i.index = len(i.array) - 1
56-
}

0 commit comments

Comments
 (0)