Index: lib/src/source_registry.dart |
diff --git a/lib/src/source_registry.dart b/lib/src/source_registry.dart |
index 7c2513289fa33a92c51b93c2e2d0e9f990abcded..be49746dc0b3eb824342b7c2aaaef6e74fdf1d3c 100644 |
--- a/lib/src/source_registry.dart |
+++ b/lib/src/source_registry.dart |
@@ -2,7 +2,6 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import 'package.dart'; |
import 'source.dart'; |
import 'source/git.dart'; |
import 'source/hosted.dart'; |
@@ -46,22 +45,6 @@ class SourceRegistry { |
_default = hosted; |
} |
- /// Returns whether [id1] and [id2] refer to the same package, including |
- /// validating that their descriptions are equivalent. |
- bool idsEqual(PackageId id1, PackageId id2) { |
- if (id1 != id2) return false; |
- if (id1 == null && id2 == null) return true; |
- return idDescriptionsEqual(id1, id2); |
- } |
- |
- /// Returns whether [id1] and [id2] have the same source and description. |
- /// |
- /// This doesn't check whether the name or versions are equal. |
- bool idDescriptionsEqual(PackageId id1, PackageId id2) { |
- if (id1.source != id2.source) return false; |
- return this[id1.source].descriptionsEqual(id1.description, id2.description); |
- } |
- |
/// Sets the default source. |
/// |
/// This takes a string, which must be the name of a registered source. |