Skip to content

Commit

Permalink
bpo-40959: Remove unused declarations from sqlite3 headers (GH-20828)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erlend Egeberg Aasland committed Jan 6, 2021
1 parent ddb5e11 commit 203b249
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions Modules/_sqlite/cache.h
Expand Up @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions Modules/_sqlite/connection.h
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions Modules/_sqlite/cursor.h
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions Modules/_sqlite/prepare_protocol.h
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion Modules/_sqlite/statement.h
Expand Up @@ -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);
Expand Down

0 comments on commit 203b249

Please sign in to comment.