Skip to content

Commit 3ab8f25

Browse files
committed
remove unused code
1 parent 906e2ea commit 3ab8f25

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/plugins/data/public/ui/index_pattern_select/create_index_pattern_select.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import _ from 'lodash';
2121
import React from 'react';
2222

2323
import { IndexPatternsContract } from 'src/plugins/data/public';
24-
import { SavedObjectsClientContract } from 'src/core/public';
2524
import { IndexPatternSelect, IndexPatternSelectProps } from './';
2625

2726
// Takes in stateful runtime dependencies and pre-wires them to the component

src/plugins/data/public/ui/index_pattern_select/index_pattern_select.tsx

-15
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,6 @@ interface IndexPatternSelectState {
4949
searchValue: string | undefined;
5050
}
5151

52-
const getIndexPatterns = async (
53-
client: SavedObjectsClientContract,
54-
search: string,
55-
fields: string[]
56-
) => {
57-
const resp = await client.find({
58-
type: 'index-pattern',
59-
fields,
60-
search: `${search}*`,
61-
searchFields: ['title'],
62-
perPage: 100,
63-
});
64-
return resp.savedObjects;
65-
};
66-
6752
// Needed for React.lazy
6853
// eslint-disable-next-line import/no-default-export
6954
export default class IndexPatternSelect extends Component<IndexPatternSelectInternalProps> {

0 commit comments

Comments
 (0)