]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44327: Remove unused members from pysqlite_Connection (GH-26565)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Sun, 6 Jun 2021 22:11:44 +0000 (00:11 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Jun 2021 22:11:44 +0000 (23:11 +0100)
* Remove timeout_started

* Remove timeout member

Modules/_sqlite/connection.c
Modules/_sqlite/connection.h

index fbee1b7ce52a24724b35e1bd4bf685647125c8c6..4ec74dd26fab64bbf53f4863ad49c7ecbcf4fbcf 100644 (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;
index 03845a696d2bf97c3605741265b958d3178f03da..88c58b385ba8443eb1b50ad348d207b1427eb3df 100644 (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;