summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2022-03-09 16:38:28 +0000
committerSean Quah <seanq@element.io>2022-03-09 16:38:33 +0000
commit3d01893d4e6917030c82547180c029f526a0d23d (patch)
treee195dbf0de1b5b9301596556fc6e2c4343349955
parentAdd tests for logcontexts during `@cached` and `@cachedList` cancellation (diff)
downloadsynapse-3d01893d4e6917030c82547180c029f526a0d23d.tar.xz
Remove dead code
Signed-off-by: Sean Quah <seanq@element.io>
-rw-r--r--tests/storage/test_database.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/storage/test_database.py b/tests/storage/test_database.py
index 6fbac0ab14..8597867563 100644
--- a/tests/storage/test_database.py
+++ b/tests/storage/test_database.py
@@ -13,26 +13,10 @@
 # limitations under the License.
 
 from synapse.storage.database import make_tuple_comparison_clause
-from synapse.storage.engines import BaseDatabaseEngine
 
 from tests import unittest
 
 
-def _stub_db_engine(**kwargs) -> BaseDatabaseEngine:
-    # returns a DatabaseEngine, circumventing the abc mechanism
-    # any kwargs are set as attributes on the class before instantiating it
-    t = type(
-        "TestBaseDatabaseEngine",
-        (BaseDatabaseEngine,),
-        dict(BaseDatabaseEngine.__dict__),
-    )
-    # defeat the abc mechanism
-    t.__abstractmethods__ = set()
-    for k, v in kwargs.items():
-        setattr(t, k, v)
-    return t(None, None)
-
-
 class TupleComparisonClauseTestCase(unittest.TestCase):
     def test_native_tuple_comparison(self):
         clause, args = make_tuple_comparison_clause([("a", 1), ("b", 2)])