| Index: pkg/path/lib/path.dart
|
| diff --git a/pkg/path/lib/path.dart b/pkg/path/lib/path.dart
|
| index 599a351507326afcb6a34b2cfc2bdae5061d3c27..a537b058b651b457b09701b52de9d090fe2422e4 100644
|
| --- a/pkg/path/lib/path.dart
|
| +++ b/pkg/path/lib/path.dart
|
| @@ -62,22 +62,9 @@ final windows = new Context(style: Style.windows);
|
| /// A default context for manipulating URLs.
|
| final url = new Context(style: Style.url);
|
|
|
| -/// The result of [Uri.base] last time the current working directory was
|
| -/// calculated.
|
| -///
|
| -/// This is used to invalidate [_cachedContext] when the working directory has
|
| -/// changed since the last time a function was called.
|
| -Uri _lastBaseUri;
|
| -
|
| /// An internal context for the current OS so we can provide a straight
|
| /// functional interface and not require users to create one.
|
| -Context get _context {
|
| - if (_cachedContext != null && Uri.base == _lastBaseUri) return _cachedContext;
|
| - _lastBaseUri = Uri.base;
|
| - _cachedContext = new Context();
|
| - return _cachedContext;
|
| -}
|
| -Context _cachedContext;
|
| +final Context _context = new Context.internal();
|
|
|
| /// Returns the [Style] of the current context.
|
| ///
|
|
|