From bbd10e3e7b9425d4fd299c4d96e6f2a30def9b1d Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Fri, 21 Jan 2022 13:43:02 -0500 Subject: [PATCH] Remove an unused variable. --- synapse/handlers/search.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py index 02bb5ae72f51..461cad0bae4e 100644 --- a/synapse/handlers/search.py +++ b/synapse/handlers/search.py @@ -238,8 +238,6 @@ async def search( results = search_result["results"] - results_map = {r["event"].event_id: r for r in results} - rank_map.update({r["event"].event_id: r["rank"] for r in results}) filtered_events = await search_filter.filter([r["event"] for r in results])