Don't needlessly compute prev_state

This commit is contained in:
Erik Johnston 2015-06-03 16:06:39 +01:00
parent 3483b78d1a
commit 55bf90b9e4
3 changed files with 5 additions and 5 deletions

View file

@ -155,10 +155,6 @@ class StateHandler(object):
context.current_state = curr_state
context.state_group = group if not event.is_state() else None
prev_state = yield self.store.add_event_hashes(
prev_state
)
if event.is_state():
key = (event.type, event.state_key)
if key in context.current_state: