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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user