| Index: pkg/analysis_server/lib/src/services/index/store/split_store.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/index/store/split_store.dart b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
|
| index b0b316963724be7697ea016b0ef96d125f32af6a..e816fbb4caba57a59ed671679d182a9a23cb7004 100644
|
| --- a/pkg/analysis_server/lib/src/services/index/store/split_store.dart
|
| +++ b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
|
| @@ -534,7 +534,6 @@ class SplitIndexStore implements IndexStore {
|
| @override
|
| bool aboutToIndexDart(AnalysisContext context,
|
| CompilationUnitElement unitElement) {
|
| - context = _unwrapContext(context);
|
| // may be already disposed in other thread
|
| if (context.isDisposed) {
|
| return false;
|
| @@ -604,7 +603,6 @@ class SplitIndexStore implements IndexStore {
|
|
|
| @override
|
| bool aboutToIndexHtml(AnalysisContext context, HtmlElement htmlElement) {
|
| - context = _unwrapContext(context);
|
| // may be already disposed in other thread
|
| if (context.isDisposed) {
|
| return false;
|
| @@ -701,7 +699,6 @@ class SplitIndexStore implements IndexStore {
|
|
|
| @override
|
| void removeContext(AnalysisContext context) {
|
| - context = _unwrapContext(context);
|
| if (context == null) {
|
| return;
|
| }
|
| @@ -717,7 +714,6 @@ class SplitIndexStore implements IndexStore {
|
|
|
| @override
|
| void removeSource(AnalysisContext context, Source source) {
|
| - context = _unwrapContext(context);
|
| if (context == null) {
|
| return;
|
| }
|
| @@ -746,7 +742,6 @@ class SplitIndexStore implements IndexStore {
|
|
|
| @override
|
| void removeSources(AnalysisContext context, SourceContainer container) {
|
| - context = _unwrapContext(context);
|
| if (context == null) {
|
| return;
|
| }
|
| @@ -887,19 +882,6 @@ class SplitIndexStore implements IndexStore {
|
| }
|
| }
|
| }
|
| -
|
| - /**
|
| - * When logging is on, [AnalysisEngine] actually creates
|
| - * [InstrumentedAnalysisContextImpl], which wraps [AnalysisContextImpl] used to create
|
| - * actual [Element]s. So, in index we have to unwrap [InstrumentedAnalysisContextImpl]
|
| - * when perform any operation.
|
| - */
|
| - AnalysisContext _unwrapContext(AnalysisContext context) {
|
| - if (context is InstrumentedAnalysisContextImpl) {
|
| - context = (context as InstrumentedAnalysisContextImpl).basis;
|
| - }
|
| - return context;
|
| - }
|
| }
|
|
|
|
|
|
|