EventIndex: Remove the unused deleteEventIndex method.

We need to support the deletion of the event index even if it's not
currently initialized, therefore the deletion ended up in the
EventIndexPeg class.
This commit is contained in:
Damir Jelić 2019-11-18 14:40:38 +01:00
parent c48ccf9761
commit 8d7e7d0cc4

View file

@ -386,14 +386,6 @@ export default class EventIndex {
return indexManager.closeEventIndex();
}
async deleteEventIndex() {
const indexManager = PlatformPeg.get().getEventIndexingManager();
if (indexManager !== null) {
this.stopCrawler();
await indexManager.deleteEventIndex();
}
}
async search(searchArgs) {
const indexManager = PlatformPeg.get().getEventIndexingManager();
return indexManager.searchEventIndex(searchArgs);