From 9c9b4bf5cb56dedb28f1c447b77922b178918ba1 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 4 Apr 2018 16:49:04 +0200 Subject: [PATCH] messages: code cleanup after emulator change --- firmware/messages.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/firmware/messages.c b/firmware/messages.c index 653ae7f417..4638057a88 100644 --- a/firmware/messages.c +++ b/firmware/messages.c @@ -48,12 +48,7 @@ const pb_field_t *MessageFields(char type, char dir, uint16_t msg_id) { const struct MessagesMap_t *m = MessagesMap; while (m->type) { -#if EMULATOR - (void) type; - if (dir == m->dir && msg_id == m->msg_id) { -#else if (type == m->type && dir == m->dir && msg_id == m->msg_id) { -#endif return m->fields; } m++; @@ -65,12 +60,7 @@ void MessageProcessFunc(char type, char dir, uint16_t msg_id, void *ptr) { const struct MessagesMap_t *m = MessagesMap; while (m->type) { -#if EMULATOR - (void) type; - if (dir == m->dir && msg_id == m->msg_id) { -#else if (type == m->type && dir == m->dir && msg_id == m->msg_id) { -#endif m->process_func(ptr); return; }