- remove unused macros
This commit is contained in:
Andrey Hristov 2015-11-10 14:28:44 +01:00
parent 2e3fc57c5c
commit 94ce013bff
4 changed files with 0 additions and 12 deletions

View file

@ -30,9 +30,6 @@
#include "mysqlnd_block_alloc.h" #include "mysqlnd_block_alloc.h"
#include "mysqlnd_ext_plugin.h" #include "mysqlnd_ext_plugin.h"
#define MYSQLND_SILENT
const char * const mysqlnd_not_bound_as_blob = "Can't send long data for non-string/non-binary data types"; const char * const mysqlnd_not_bound_as_blob = "Can't send long data for non-string/non-binary data types";
const char * const mysqlnd_stmt_not_prepared = "Statement not prepared"; const char * const mysqlnd_stmt_not_prepared = "Statement not prepared";

View file

@ -28,8 +28,6 @@
#include "mysqlnd_debug.h" #include "mysqlnd_debug.h"
#include "mysql_float_to_double.h" #include "mysql_float_to_double.h"
#define MYSQLND_SILENT
enum mysqlnd_timestamp_type enum mysqlnd_timestamp_type
{ {

View file

@ -29,8 +29,6 @@
#include "mysqlnd_debug.h" #include "mysqlnd_debug.h"
#include "mysqlnd_ext_plugin.h" #include "mysqlnd_ext_plugin.h"
#define MYSQLND_SILENT
/* {{{ mysqlnd_result_buffered_zval::initialize_result_set_rest */ /* {{{ mysqlnd_result_buffered_zval::initialize_result_set_rest */
static enum_func_status static enum_func_status
MYSQLND_METHOD(mysqlnd_result_buffered_zval, initialize_result_set_rest)(MYSQLND_RES_BUFFERED * const result, MYSQLND_RES_METADATA * const meta, MYSQLND_METHOD(mysqlnd_result_buffered_zval, initialize_result_set_rest)(MYSQLND_RES_BUFFERED * const result, MYSQLND_RES_METADATA * const meta,

View file

@ -26,9 +26,6 @@
#include "mysqlnd_statistics.h" #include "mysqlnd_statistics.h"
#include "mysqlnd_debug.h" #include "mysqlnd_debug.h"
#define MYSQLND_SILENT 1
#define MYSQLND_DUMP_HEADER_N_BODY
#define BAIL_IF_NO_MORE_DATA \ #define BAIL_IF_NO_MORE_DATA \
if ((size_t)(p - begin) > packet->header.size) { \ if ((size_t)(p - begin) > packet->header.size) { \
php_error_docref(NULL, E_WARNING, "Premature end of data (mysqlnd_wireprotocol.c:%u)", __LINE__); \ php_error_docref(NULL, E_WARNING, "Premature end of data (mysqlnd_wireprotocol.c:%u)", __LINE__); \
@ -257,9 +254,7 @@ mysqlnd_read_header(MYSQLND_PFC * pfc, MYSQLND_VIO * vio, MYSQLND_PACKET_HEADER
header->size = uint3korr(buffer); header->size = uint3korr(buffer);
header->packet_no = uint1korr(buffer + 3); header->packet_no = uint1korr(buffer + 3);
#ifdef MYSQLND_DUMP_HEADER_N_BODY
DBG_INF_FMT("HEADER: prot_packet_no=%u size=%3u", header->packet_no, header->size); DBG_INF_FMT("HEADER: prot_packet_no=%u size=%3u", header->packet_no, header->size);
#endif
MYSQLND_INC_CONN_STATISTIC_W_VALUE2(conn_stats, MYSQLND_INC_CONN_STATISTIC_W_VALUE2(conn_stats,
STAT_PROTOCOL_OVERHEAD_IN, MYSQLND_HEADER_SIZE, STAT_PROTOCOL_OVERHEAD_IN, MYSQLND_HEADER_SIZE,
STAT_PACKETS_RECEIVED, 1); STAT_PACKETS_RECEIVED, 1);