mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-12 09:54:19 -05:00
synapse/storage/_base.py:_simple_delete was unused
This commit is contained in:
parent
1ee3d26432
commit
1d9036aff2
@ -707,16 +707,6 @@ class SQLBaseStore(object):
|
|||||||
raise StoreError(500, "more than one row matched")
|
raise StoreError(500, "more than one row matched")
|
||||||
return self.runInteraction(desc, func)
|
return self.runInteraction(desc, func)
|
||||||
|
|
||||||
def _simple_delete(self, table, keyvalues, desc="_simple_delete"):
|
|
||||||
"""Executes a DELETE query on the named table.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
table : string giving the table name
|
|
||||||
keyvalues : dict of column names and values to select the row with
|
|
||||||
"""
|
|
||||||
|
|
||||||
return self.runInteraction(desc, self._simple_delete_txn)
|
|
||||||
|
|
||||||
def _simple_delete_txn(self, txn, table, keyvalues):
|
def _simple_delete_txn(self, txn, table, keyvalues):
|
||||||
sql = "DELETE FROM %s WHERE %s" % (
|
sql = "DELETE FROM %s WHERE %s" % (
|
||||||
table,
|
table,
|
||||||
|
Loading…
Reference in New Issue
Block a user