diff --git a/src/Cache.cpp b/src/Cache.cpp
index 986de221fa52f40b2a089ae5cc2193b31eb6e5a7..8ea44e1309e5d765ed45ca6f519e27d749b0e574 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -512,7 +512,6 @@ Cache::getLatestOlmSession(const std::string &curve25519)
         auto db  = getOlmSessionsDb(txn, curve25519);
 
         std::string session_id, pickled_session;
-        std::vector<std::string> res;
 
         std::optional<StoredOlmSession> currentNewest;