From 1ee232bf85c81c511ee8cfc55e17205cfe56c117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 29 Jun 2021 00:43:07 +0200 Subject: [PATCH] Removed dead code from MySQL_Session --- include/MySQL_Session.h | 1 - lib/MySQL_Session.cpp | 26 -------------------------- 2 files changed, 27 deletions(-) diff --git a/include/MySQL_Session.h b/include/MySQL_Session.h index f4e5c5c61..5ff381e6f 100644 --- a/include/MySQL_Session.h +++ b/include/MySQL_Session.h @@ -95,7 +95,6 @@ class MySQL_Session void handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_CHANGE_USER(PtrSize_t *, bool *); - void handler___status_WAITING_SERVER_DATA___STATE_READING_COM_STMT_PREPARE_RESPONSE(PtrSize_t *); void handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_SET_OPTION(PtrSize_t *); void handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_STATISTICS(PtrSize_t *); void handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_PROCESS_KILL(PtrSize_t *); diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index 7a7a97b96..7f0151901 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -4668,32 +4668,6 @@ bool MySQL_Session::handler_again___multiple_statuses(int *rc) { return ret; } -void MySQL_Session::handler___status_WAITING_SERVER_DATA___STATE_READING_COM_STMT_PREPARE_RESPONSE(PtrSize_t *pkt) { - unsigned char c; - c=*((unsigned char *)pkt->ptr+sizeof(mysql_hdr)); - - //fprintf(stderr,"%d %d\n", mybe->server_myds->myprot.current_PreStmt->pending_num_params, mybe->server_myds->myprot.current_PreStmt->pending_num_columns); - if (c==0xfe && pkt->size < 13) { - if (mybe->server_myds->myprot.current_PreStmt->pending_num_params+mybe->server_myds->myprot.current_PreStmt->pending_num_columns) { - mybe->server_myds->DSS=STATE_EOF1; - } else { - mybe->server_myds->DSS=STATE_READY; - status=WAITING_CLIENT_DATA; - client_myds->DSS=STATE_SLEEP; - } - } else { - if (mybe->server_myds->myprot.current_PreStmt->pending_num_params) { - --mybe->server_myds->myprot.current_PreStmt->pending_num_params; - } else { - if (mybe->server_myds->myprot.current_PreStmt->pending_num_columns) { - --mybe->server_myds->myprot.current_PreStmt->pending_num_columns; - } - } - } - client_myds->PSarrayOUT->add(pkt->ptr, pkt->size); -} - - void MySQL_Session::handler___status_CHANGING_USER_CLIENT___STATE_CLIENT_HANDSHAKE(PtrSize_t *pkt, bool *wrong_pass) { // FIXME: no support for SSL yet if (