Skip to content

Commit

Permalink
Remove missing_enum_constant_in_switch linter suppression as dart-l…
Browse files Browse the repository at this point in the history
…ang/sdk#49188 has been fixed.
  • Loading branch information
renggli committed Jun 24, 2022
1 parent 8351203 commit 978a5c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/src/matrix/matrix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ abstract class Matrix<T> implements Storage {
ArgumentError.checkNotNull(dataType, 'dataType');
RangeError.checkNotNegative(rowCount, 'rowCount');
RangeError.checkNotNegative(columnCount, 'columnCount');
// https://github.com/dart-lang/sdk/issues/49188:
// ignore: missing_enum_constant_in_switch
switch (format ?? MatrixFormat.standard) {
case MatrixFormat.rowMajor:
return RowMajorMatrix<T>(dataType, rowCount, columnCount);
Expand Down
2 changes: 0 additions & 2 deletions lib/src/polynomial/polynomial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ abstract class Polynomial<T> implements Storage {
factory Polynomial(DataType<T> dataType,
{int desiredDegree = -1, PolynomialFormat? format}) {
ArgumentError.checkNotNull(dataType, 'dataType');
// https://github.com/dart-lang/sdk/issues/49188:
// ignore: missing_enum_constant_in_switch
switch (format ?? PolynomialFormat.standard) {
case PolynomialFormat.list:
return ListPolynomial<T>(dataType, desiredDegree);
Expand Down
2 changes: 0 additions & 2 deletions lib/src/vector/vector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ abstract class Vector<T> implements Storage {
factory Vector(DataType<T> dataType, int count, {VectorFormat? format}) {
ArgumentError.checkNotNull(dataType, 'dataType');
RangeError.checkNotNegative(count, 'count');
// https://github.com/dart-lang/sdk/issues/49188:
// ignore: missing_enum_constant_in_switch
switch (format ?? VectorFormat.standard) {
case VectorFormat.list:
return ListVector<T>(dataType, count);
Expand Down

0 comments on commit 978a5c9

Please sign in to comment.