EventIndex: Remove some unused variables and some trailing whitespace.

pull/21833/head
Damir Jelić 2019-11-19 09:26:46 +01:00
parent 21f00aaeb1
commit d2a9918359
2 changed files with 1 additions and 5 deletions

View File

@ -113,8 +113,6 @@ export default class EventIndex {
} }
async onRoomTimeline(ev, room, toStartOfTimeline, removed, data) { async onRoomTimeline(ev, room, toStartOfTimeline, removed, data) {
const indexManager = PlatformPeg.get().getEventIndexingManager();
// We only index encrypted rooms locally. // We only index encrypted rooms locally.
if (!MatrixClientPeg.get().isRoomEncrypted(room.roomId)) return; if (!MatrixClientPeg.get().isRoomEncrypted(room.roomId)) return;
@ -138,8 +136,6 @@ export default class EventIndex {
} }
async onEventDecrypted(ev, err) { async onEventDecrypted(ev, err) {
const indexManager = PlatformPeg.get().getEventIndexingManager();
const eventId = ev.getId(); const eventId = ev.getId();
// If the event isn't in our live event set, ignore it. // If the event isn't in our live event set, ignore it.