From 17f087412b104b8ff96814066b54597ff6082649 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 27 Mar 2017 18:50:24 +0200 Subject: Erase compilation WARNING. Useless tests and type cast about numbers. Change-Id: I6fe13b7dfec8529520730f83e83d2dd3da3a674c Signed-off-by: Romain Forlot --- src/can/can-decoder.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/can/can-decoder.cpp') diff --git a/src/can/can-decoder.cpp b/src/can/can-decoder.cpp index 467261af..8843059d 100644 --- a/src/can/can-decoder.cpp +++ b/src/can/can-decoder.cpp @@ -152,12 +152,6 @@ openxc_DynamicField decoder_t::stateDecoder(can_signal_t& signal, openxc_DynamicField decoder_t::translateSignal(can_signal_t& signal, can_message_t& message, const std::vector& signals) { - if(&signal == nullptr || &message == nullptr) - { - openxc_DynamicField ret = {0, openxc_DynamicField_Type_BOOL, 0, "", 0, 0, 0, 0}; - return ret; - } - float value = decoder_t::parseSignalBitfield(signal, message); DEBUG(binder_interface, "translateSignal: Decoded message from parseSignalBitfield: %f", value); -- cgit 1.2.3-korg