From 331fa5a237e1041d8403756cdaa7a889987ad8e5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 24 Nov 2019 23:11:01 +0100 Subject: [PATCH] remove unused function process_do_error() Change-Id: I02bc23a340b086b0de4e69affb6f965bff6bbc0b --- host/simtrace2-remsim.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/host/simtrace2-remsim.c b/host/simtrace2-remsim.c index 101d4250..918c9fde 100644 --- a/host/simtrace2-remsim.c +++ b/host/simtrace2-remsim.c @@ -385,19 +385,6 @@ static int process_do_pts(struct cardem_inst *ci, uint8_t *buf, int len) return 0; } -/*! \brief Process a ERROR indication message from the SIMtrace2 */ -static int process_do_error(struct cardem_inst *ci, uint8_t *buf, int len) -{ - struct cardemu_usb_msg_error *err; - err = (struct cardemu_usb_msg_error *) buf; - - printf("=> ERROR: %u/%u/%u: %s\n", - err->severity, err->subsystem, err->code, - err->msg_len ? (char *)err->msg : ""); - - return 0; -} - /*! \brief Process a RX-DATA indication message from the SIMtrace2 */ static int process_do_rx_da(struct cardem_inst *ci, uint8_t *buf, int len) { @@ -447,12 +434,6 @@ static int process_do_rx_da(struct cardem_inst *ci, uint8_t *buf, int len) return 0; } -#if 0 - case SIMTRACE_CMD_DO_ERROR - rc = process_do_error(ci, buf, len); - break; -#endif - /*! \brief Process an incoming message from the SIMtrace2 */ static int process_usb_msg(struct cardem_inst *ci, uint8_t *buf, int len) {