Skip to content

Commit

Permalink
Remove _LEGACY from service
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinar-24 committed Nov 28, 2019
1 parent 6683303 commit 6213412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
* under the License.
*/

import { setup as data } from '../../../../../../../data/public/legacy';
const { FieldImpl: Field } = data.indexPatterns.__LEGACY;

import { Field } from '../../../../../../../../../plugins/data/public';
import { RegistryFieldFormatEditorsProvider } from 'ui/registry/field_format_editors';
import { docTitle } from 'ui/doc_title';
import { KbnUrlProvider } from 'ui/url';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
NotificationsStart,
} from 'src/core/public';
import { FieldFormatsStart } from '../field_formats_provider';
import { Field, FieldList } from './fields';
import { FieldList } from './fields';
import { setNotifications, setFieldFormats } from './services';
import { createFlattenHitWrapper, formatHitProvider, IndexPatterns } from './index_patterns';

Expand All @@ -49,11 +49,6 @@ export class IndexPatternsService {
FieldList,
flattenHitWrapper: createFlattenHitWrapper(),
formatHitProvider,
__LEGACY: {
// For BWC we must temporarily export the class implementation of Field,
// which is only used externally by the Index Pattern UI.
FieldImpl: Field,
},
};
return this.setupApi;
}
Expand Down

0 comments on commit 6213412

Please sign in to comment.