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.pull/21833/head
parent
c48ccf9761
commit
8d7e7d0cc4
|
@ -386,14 +386,6 @@ export default class EventIndex {
|
||||||
return indexManager.closeEventIndex();
|
return indexManager.closeEventIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteEventIndex() {
|
|
||||||
const indexManager = PlatformPeg.get().getEventIndexingManager();
|
|
||||||
if (indexManager !== null) {
|
|
||||||
this.stopCrawler();
|
|
||||||
await indexManager.deleteEventIndex();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async search(searchArgs) {
|
async search(searchArgs) {
|
||||||
const indexManager = PlatformPeg.get().getEventIndexingManager();
|
const indexManager = PlatformPeg.get().getEventIndexingManager();
|
||||||
return indexManager.searchEventIndex(searchArgs);
|
return indexManager.searchEventIndex(searchArgs);
|
||||||
|
|
Loading…
Reference in New Issue