From e5865009f5c8ccfc7791c17a7469c1a566482756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 9 Nov 2017 01:17:50 +0100 Subject: [PATCH] Remove unused SetError(), SetGenericError, and SetResponseByte() functions. --- left/src/slave_protocol_handler.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/left/src/slave_protocol_handler.c b/left/src/slave_protocol_handler.c index a517264..8813979 100644 --- a/left/src/slave_protocol_handler.c +++ b/left/src/slave_protocol_handler.c @@ -14,25 +14,6 @@ i2c_message_t RxMessage; i2c_message_t TxMessage; -void SetError(uint8_t error); -void SetGenericError(void); -void SetResponseByte(uint8_t response); - -void SetError(uint8_t error) { - TxMessage.data[0] = error; -} - -void SetGenericError(void) -{ - SetError(PROTOCOL_RESPONSE_GENERIC_ERROR); -} - -// Set a single byte as the response. -void SetResponseByte(uint8_t response) -{ - TxMessage.data[1] = response; -} - void SlaveRxHandler(void) { if (!CRC16_IsMessageValid(&RxMessage)) {