From 56ae90104c443872a4c5b4949f8a2462e4d91cfe Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Wed, 10 Jun 2026 18:26:56 +0900 Subject: [PATCH] remove unused macros --- src/MySQLdb/_mysql.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/MySQLdb/_mysql.c b/src/MySQLdb/_mysql.c index eb83b430..29ba9d93 100644 --- a/src/MySQLdb/_mysql.c +++ b/src/MySQLdb/_mysql.c @@ -87,13 +87,7 @@ typedef struct { PyThread_type_lock lock; } _mysql_ConnectionObject; -#define check_connection(c) \ - if (!(c->open)) { \ - return _mysql_Exception(c); \ - }; - #define result_connection(r) ((_mysql_ConnectionObject *)r->conn) -#define check_result_connection(r) check_connection(result_connection(r)) extern PyTypeObject _mysql_ConnectionObject_Type;