Remove some unnecessary type asserts
These are guarateed by the type system now. Change-Id: I6d68a0284761805ae14f8c26d68469018c2a0e1d Reviewed-on: https://dart-review.googlesource.com/c/81186 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
821b5fe72a
commit
7c845fa853
@@ -526,7 +526,7 @@ class TakeIterator<E> extends Iterator<E> {
|
||||
int _remaining;
|
||||
|
||||
TakeIterator(this._iterator, this._remaining) {
|
||||
assert(_remaining is int && _remaining >= 0);
|
||||
assert(_remaining >= 0);
|
||||
}
|
||||
|
||||
bool moveNext() {
|
||||
@@ -633,7 +633,7 @@ class SkipIterator<E> extends Iterator<E> {
|
||||
int _skipCount;
|
||||
|
||||
SkipIterator(this._iterator, this._skipCount) {
|
||||
assert(_skipCount is int && _skipCount >= 0);
|
||||
assert(_skipCount >= 0);
|
||||
}
|
||||
|
||||
bool moveNext() {
|
||||
|
||||
Reference in New Issue
Block a user