| 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');
|
| - }
|
| }
|
|
|