Skip to content

Commit e24dc94

Browse files
committed
MDNR:
- remove dead code
1 parent 7d7ff67 commit e24dc94

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

ext/mysqlnd/mysqlnd_ps.c

+1-34
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,7 @@ MYSQLND_METHOD(mysqlnd_stmt, prepare)(MYSQLND_STMT * const s, const char * const
430430
}
431431
}
432432

433-
if (
434-
#if A0
435-
FAIL == stmt_to_prepare->conn->m->send_command(stmt_to_prepare->conn, COM_STMT_PREPARE, (const zend_uchar *) query, query_len, PROT_LAST, FALSE, TRUE) ||
436-
#endif
437-
FAIL == mysqlnd_stmt_read_prepare_response(s_to_prepare))
438-
{
433+
if (FAIL == mysqlnd_stmt_read_prepare_response(s_to_prepare)) {
439434
goto fail;
440435
}
441436

@@ -745,12 +740,6 @@ MYSQLND_METHOD(mysqlnd_stmt, send_execute)(MYSQLND_STMT * const s, enum_mysqlnd_
745740
ret = command->run(command);
746741
command->free_command(command);
747742
}
748-
#if A0
749-
/* support for buffer types should be added here ! */
750-
ret = stmt->conn->m->send_command(stmt->conn, COM_STMT_EXECUTE, request, request_len,
751-
PROT_LAST /* we will handle the response packet*/,
752-
FALSE, FALSE);
753-
#endif
754743
} else {
755744
SET_STMT_ERROR(stmt, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, "Couldn't generate the request. Possibly OOM.");
756745
}
@@ -1322,14 +1311,6 @@ MYSQLND_METHOD(mysqlnd_stmt, reset)(MYSQLND_STMT * const s)
13221311
}
13231312
}
13241313
}
1325-
#if A0
1326-
if (CONN_GET_STATE(conn) == CONN_READY &&
1327-
FAIL == (ret = conn->m->send_command(conn, COM_STMT_RESET, cmd_buf,
1328-
sizeof(cmd_buf), PROT_OK_PACKET,
1329-
FALSE, TRUE))) {
1330-
COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info);
1331-
}
1332-
#endif
13331314
*stmt->upsert_status = *conn->upsert_status;
13341315
}
13351316
DBG_INF(ret == PASS? "PASS":"FAIL");
@@ -1452,12 +1433,6 @@ MYSQLND_METHOD(mysqlnd_stmt, send_long_data)(MYSQLND_STMT * const s, unsigned in
14521433
}
14531434
}
14541435

1455-
#if A0
1456-
ret = conn->m->send_command(conn, COM_STMT_SEND_LONG_DATA, cmd_buf, packet_len, PROT_LAST , FALSE, TRUE);
1457-
if (FAIL == ret) {
1458-
COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info);
1459-
}
1460-
#endif
14611436
mnd_efree(cmd_buf);
14621437
} else {
14631438
ret = FAIL;
@@ -2288,14 +2263,6 @@ MYSQLND_METHOD_PRIVATE(mysqlnd_stmt, net_close)(MYSQLND_STMT * const s, zend_boo
22882263
if (ret == FAIL) {
22892264
DBG_RETURN(FAIL);
22902265
}
2291-
2292-
#if A0
2293-
FAIL == conn->m->send_command(conn, COM_STMT_CLOSE, cmd_buf, sizeof(cmd_buf),
2294-
PROT_LAST /* COM_STMT_CLOSE doesn't send an OK packet*/,
2295-
FALSE, TRUE)) {
2296-
COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info);
2297-
DBG_RETURN(FAIL);
2298-
#endif
22992266
}
23002267
}
23012268
switch (stmt->execute_count) {

0 commit comments

Comments
 (0)