]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40959: Remove unused declarations from sqlite3 headers (GH-20828)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Wed, 6 Jan 2021 00:56:05 +0000 (01:56 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Jan 2021 00:56:05 +0000 (02:56 +0200)
Modules/_sqlite/cache.h
Modules/_sqlite/connection.h
Modules/_sqlite/cursor.h
Modules/_sqlite/prepare_protocol.h
Modules/_sqlite/statement.h

index 0afdf7f09b65c78771f745fa7d22b5bd2480b023..4a1977fcd2cd23846500dfa753f7b05300fa4c37 100644 (file)
@@ -62,11 +62,6 @@ typedef struct
 extern PyTypeObject *pysqlite_NodeType;
 extern PyTypeObject *pysqlite_CacheType;
 
-int pysqlite_node_init(pysqlite_Node* self, PyObject* args, PyObject* kwargs);
-void pysqlite_node_dealloc(pysqlite_Node* self);
-
-int pysqlite_cache_init(pysqlite_Cache* self, PyObject* args, PyObject* kwargs);
-void pysqlite_cache_dealloc(pysqlite_Cache* self);
 PyObject* pysqlite_cache_get(pysqlite_Cache* self, PyObject* args);
 
 int pysqlite_cache_setup_types(PyObject *module);
index 1d1a8ad5ae04d1930cb88835368b5d85391f0d0c..82f6baf6eef3d7690c0e01772d94ac62f3a74336 100644 (file)
@@ -108,11 +108,7 @@ typedef struct
 
 extern PyTypeObject *pysqlite_ConnectionType;
 
-PyObject* pysqlite_connection_alloc(PyTypeObject* type, int aware);
-void pysqlite_connection_dealloc(pysqlite_Connection* self);
 PyObject* _pysqlite_connection_begin(pysqlite_Connection* self);
-PyObject* pysqlite_connection_new(PyTypeObject* type, PyObject* args, PyObject* kw);
-int pysqlite_connection_init(pysqlite_Connection* self, PyObject* args, PyObject* kwargs);
 
 int pysqlite_connection_register_cursor(pysqlite_Connection* connection, PyObject* cursor);
 int pysqlite_check_thread(pysqlite_Connection* self);
index c79e3554c9fb25bc0b6e6f121d3464a805a1ec0c..b26b2886746c29175f572964c732428432ed0f7f 100644 (file)
@@ -54,9 +54,6 @@ typedef struct
 
 extern PyTypeObject *pysqlite_CursorType;
 
-PyObject* pysqlite_cursor_getiter(pysqlite_Cursor *self);
-PyObject* pysqlite_cursor_iternext(pysqlite_Cursor *self);
-
 int pysqlite_cursor_setup_types(PyObject *module);
 
 #define UNKNOWN (-1)
index d0f717c754c1d5f42430e1282f16174d8f5d617e..42d07cbe9f16feaae3f021e396dd5a0506d79946 100644 (file)
@@ -33,9 +33,6 @@ typedef struct
 
 extern PyTypeObject *pysqlite_PrepareProtocolType;
 
-int pysqlite_prepare_protocol_init(pysqlite_PrepareProtocol* self, PyObject* args, PyObject* kwargs);
-void pysqlite_prepare_protocol_dealloc(pysqlite_PrepareProtocol* self);
-
 int pysqlite_prepare_protocol_setup_types(PyObject *module);
 
 #define UNKNOWN (-1)
index b426036002815ab23cd2930d8996a007ec9201de..56ff7271448d1cdde7ff01d39006f899a16e8021 100644 (file)
@@ -46,7 +46,6 @@ typedef struct
 extern PyTypeObject *pysqlite_StatementType;
 
 int pysqlite_statement_create(pysqlite_Statement* self, pysqlite_Connection* connection, PyObject* sql);
-void pysqlite_statement_dealloc(pysqlite_Statement* self);
 
 int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObject* parameter);
 void pysqlite_statement_bind_parameters(pysqlite_Statement* self, PyObject* parameters);