From 613369dd4acafea29207388c3b2685fc2495e1b5 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Fri, 12 Jun 2020 13:22:49 +0200 Subject: [PATCH] bpo-40959: Remove unused and unneeded declarations from sqlite3 headers --- Modules/_sqlite/cache.h | 5 ----- Modules/_sqlite/connection.h | 4 ---- Modules/_sqlite/cursor.h | 3 --- Modules/_sqlite/prepare_protocol.h | 3 --- Modules/_sqlite/statement.h | 1 - 5 files changed, 16 deletions(-) diff --git a/Modules/_sqlite/cache.h b/Modules/_sqlite/cache.h index 0afdf7f09b65c7..4a1977fcd2cd23 100644 --- a/Modules/_sqlite/cache.h +++ b/Modules/_sqlite/cache.h @@ -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); diff --git a/Modules/_sqlite/connection.h b/Modules/_sqlite/connection.h index 1d1a8ad5ae04d1..82f6baf6eef3d7 100644 --- a/Modules/_sqlite/connection.h +++ b/Modules/_sqlite/connection.h @@ -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); diff --git a/Modules/_sqlite/cursor.h b/Modules/_sqlite/cursor.h index c79e3554c9fb25..b26b2886746c29 100644 --- a/Modules/_sqlite/cursor.h +++ b/Modules/_sqlite/cursor.h @@ -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) diff --git a/Modules/_sqlite/prepare_protocol.h b/Modules/_sqlite/prepare_protocol.h index d0f717c754c1d5..42d07cbe9f16fe 100644 --- a/Modules/_sqlite/prepare_protocol.h +++ b/Modules/_sqlite/prepare_protocol.h @@ -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) diff --git a/Modules/_sqlite/statement.h b/Modules/_sqlite/statement.h index b426036002815a..56ff7271448d1c 100644 --- a/Modules/_sqlite/statement.h +++ b/Modules/_sqlite/statement.h @@ -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); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy