summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-11 12:37:30 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-11 12:37:30 (GMT)
commit9af13ca565c670d411fa4167f4bab999a26c48c9 (patch)
tree6f5efdb0ed9b0a2f9dcc84ebb497696d3f70a6f9 /Modules/_sqlite
parent966ad74bf906aaae32d83e87993926583c51d598 (diff)
downloadcpython-9af13ca565c670d411fa4167f4bab999a26c48c9.zip
cpython-9af13ca565c670d411fa4167f4bab999a26c48c9.tar.gz
cpython-9af13ca565c670d411fa4167f4bab999a26c48c9.tar.bz2
Issue #28036: Remove unused pysqlite_flush_statement_cache function
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/connection.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 4a10ce5..aca66fe 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -202,26 +202,6 @@ int pysqlite_connection_init(pysqlite_Connection* self, PyObject* args, PyObject
return 0;
}
-/* Empty the entire statement cache of this connection */
-void pysqlite_flush_statement_cache(pysqlite_Connection* self)
-{
- pysqlite_Node* node;
- pysqlite_Statement* statement;
-
- node = self->statement_cache->first;
-
- while (node) {
- statement = (pysqlite_Statement*)(node->data);
- (void)pysqlite_statement_finalize(statement);
- node = node->next;
- }
-
- Py_SETREF(self->statement_cache,
- (pysqlite_Cache *)PyObject_CallFunction((PyObject *)&pysqlite_CacheType, "O", self));
- Py_DECREF(self);
- self->statement_cache->decref_factory = 0;
-}
-
/* action in (ACTION_RESET, ACTION_FINALIZE) */
void pysqlite_do_all_statements(pysqlite_Connection* self, int action, int reset_cursors)
{