Skip to content

Commit 88a834f

Browse files
authored
remove unused macros (#787)
1 parent c67f902 commit 88a834f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/MySQLdb/_mysql.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,7 @@ typedef struct {
8787
PyThread_type_lock lock;
8888
} _mysql_ConnectionObject;
8989

90-
#define check_connection(c) \
91-
if (!(c->open)) { \
92-
return _mysql_Exception(c); \
93-
};
94-
9590
#define result_connection(r) ((_mysql_ConnectionObject *)r->conn)
96-
#define check_result_connection(r) check_connection(result_connection(r))
9791

9892
extern PyTypeObject _mysql_ConnectionObject_Type;
9993

0 commit comments

Comments
 (0)