bpo-44327: Remove unused members from pysqlite_Connection (GH-26565)

* Remove timeout_started

* Remove timeout member
This commit is contained in:
Erlend Egeberg Aasland 2021-06-07 00:11:44 +02:00 committed by GitHub
parent 18e9edb7b3
commit 505624e917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -172,7 +172,6 @@ pysqlite_connection_init(pysqlite_Connection *self, PyObject *args,
}
self->detect_types = detect_types;
self->timeout = timeout;
(void)sqlite3_busy_timeout(self->db, (int)(timeout*1000));
self->thread_ident = PyThread_get_thread_ident();
self->check_same_thread = check_same_thread;

View File

@ -41,13 +41,6 @@ typedef struct
* bitwise combination thereof makes sense */
int detect_types;
/* the timeout value in seconds for database locks */
double timeout;
/* for internal use in the timeout handler: when did the timeout handler
* first get called with count=0? */
double timeout_started;
/* None for autocommit, otherwise a PyUnicode with the isolation level */
PyObject* isolation_level;