mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
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:
parent
c48ccf9761
commit
8d7e7d0cc4
1 changed files with 0 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue