summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-27 09:21:51 +0100
committerErik Johnston <erik@matrix.org>2016-09-27 09:21:51 +0100
commit13122e5e246d7dd088ddb8d345487ddb23a66f6b (patch)
treefec6bdc80a8f9f2ab49db73a827a35a393529b2a /synapse/storage/state.py
parentFix perf of fetching state in SQLite (diff)
downloadsynapse-13122e5e246d7dd088ddb8d345487ddb23a66f6b.tar.xz
Remove unused variable
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index a82ba1d1d9..45478c7a5a 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -378,7 +378,6 @@ class StateStore(SQLBaseStore):
             # We don't use WITH RECURSIVE on sqlite3 as there are distributions
             # that ship with an sqlite3 version that doesn't support it (e.g. wheezy)
             for group in groups:
-                group_tree = [group]
                 next_group = group
 
                 while next_group:
@@ -427,8 +426,6 @@ class StateStore(SQLBaseStore):
                         retcol="prev_state_group",
                         allow_none=True,
                     )
-                    if next_group:
-                        group_tree.append(next_group)
 
         return results