Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1106)

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart

Issue 583853002: Use precompiled dependencies in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart b/sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart
index faadc6b9b48ca8b9eb08c83684f4f6a539e96d65..c36d4ae24cedb22d74fd74c6f172b93abf6db151 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart
@@ -7,10 +7,8 @@ library pub.barback.transformer_id;
import 'dart:async';
import 'package:barback/barback.dart';
-import 'package:path/path.dart' as p;
import 'package:source_span/source_span.dart';
-import '../io.dart';
import '../utils.dart';
/// A list of the names of all built-in transformers that pub exposes.
@@ -94,16 +92,4 @@ class TransformerId {
.catchError((e) => new AssetId(package, 'lib/$package.dart'),
test: (e) => e is AssetNotFoundException);
}
-
- /// Returns the path to the library identified by this transformer within
- /// [packageDir], which should be the directory of [package].
- ///
- /// If `path` is null, this will determine which library to load.
- String getFullPath(String packageDir) {
- if (path != null) return p.join(packageDir, 'lib', p.fromUri('$path.dart'));
-
- var transformerPath = p.join(packageDir, 'lib', 'transformer.dart');
- if (fileExists(transformerPath)) return transformerPath;
- return p.join(packageDir, 'lib', '$package.dart');
- }
}

Powered by Google App Engine
This is Rietveld 408576698