| Index: third_party/pkg/di/lib/src/key.dart
|
| diff --git a/third_party/pkg/di/lib/src/key.dart b/third_party/pkg/di/lib/src/key.dart
|
| deleted file mode 100644
|
| index 84ba9ad9c23279372f5aa93bd11c20ba8bd9250f..0000000000000000000000000000000000000000
|
| --- a/third_party/pkg/di/lib/src/key.dart
|
| +++ /dev/null
|
| @@ -1,32 +0,0 @@
|
| -part of di;
|
| -
|
| -int _lastKeyId = 0;
|
| -int get lastKeyId => _lastKeyId;
|
| -
|
| -Map<int, int> _hashToKey = {};
|
| -
|
| -class Key {
|
| - final Type type;
|
| - final Type annotation;
|
| - final int hashCode;
|
| - final int id;
|
| -
|
| - factory Key(Type type, [Type annotation]) {
|
| - var _hashCode = type.hashCode + annotation.hashCode;
|
| - var _id = _hashToKey.putIfAbsent(_hashCode, () => _lastKeyId++);
|
| - return new Key._newKey(type, annotation, _hashCode, _id);
|
| - }
|
| -
|
| - Key._newKey(this.type, this.annotation, this.hashCode, this.id);
|
| -
|
| - bool operator ==(other) =>
|
| - other is Key && other.hashCode == hashCode;
|
| -
|
| - String toString() {
|
| - String asString = type.toString();
|
| - if (annotation != null) {
|
| - asString += ' annotated with: ${annotation.toString()}';
|
| - }
|
| - return asString;
|
| - }
|
| -}
|
|
|