[Python-checkins] bpo-44327: Remove unused members from pysqlite_Connection (GH-26565)

pablogsal webhook-mailer at python.org
Sun Jun 6 18:11:52 EDT 2021


https://github.com/python/cpython/commit/505624e917a2d3d845304f8d34fccd41f06d4720
commit: 505624e917a2d3d845304f8d34fccd41f06d4720
branch: main
author: Erlend Egeberg Aasland <erlend.aasland at innova.no>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-06-06T23:11:44+01:00
summary:

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

* Remove timeout_started

* Remove timeout member

files:
M Modules/_sqlite/connection.c
M Modules/_sqlite/connection.h

diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index fbee1b7ce52a2..4ec74dd26fab6 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -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;
diff --git a/Modules/_sqlite/connection.h b/Modules/_sqlite/connection.h
index 03845a696d2bf..88c58b385ba84 100644
--- a/Modules/_sqlite/connection.h
+++ b/Modules/_sqlite/connection.h
@@ -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;
 



More information about the Python-checkins mailing list