From d572196852895f42e90b79b4ba5346b5d8c48f87 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 2 Mar 2017 23:23:55 +0100 Subject: Clean up uneeded members and functions Change-Id: Idc9ebe9cfc6e348c378c1489971600b8f125e6e1 Signed-off-by: Romain Forlot --- src/can-bus.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/can-bus.cpp') diff --git a/src/can-bus.cpp b/src/can-bus.cpp index a3dd2d4d..76f6e45b 100644 --- a/src/can-bus.cpp +++ b/src/can-bus.cpp @@ -245,7 +245,6 @@ can_message_t can_bus_t::next_can_message() return can_msg; } - has_can_message_ = false; return can_msg; } @@ -254,11 +253,6 @@ void can_bus_t::push_new_can_message(const can_message_t& can_msg) can_message_q_.push(can_msg); } -bool can_bus_t::has_can_message() -{ - return has_can_message_; -} - openxc_VehicleMessage can_bus_t::next_vehicle_message() { openxc_VehicleMessage v_msg; @@ -271,14 +265,12 @@ openxc_VehicleMessage can_bus_t::next_vehicle_message() return v_msg; } - has_vehicle_message_ = false; return v_msg; } void can_bus_t::push_new_vehicle_message(const openxc_VehicleMessage& v_msg) { vehicle_message_q_.push(v_msg); - has_vehicle_message_ = true; } std::map> can_bus_t::get_can_devices() -- cgit 1.2.3-korg