From bfadb522b21256fde7283746b90116c237e57a5b Mon Sep 17 00:00:00 2001 From: Yuta Doi Date: Mon, 14 May 2018 17:22:57 +0900 Subject: PolicyManager can judge the current car state and remove judgement process of it from LowCanClient because it should be judged by PolicyManager Change-Id: I94467332665e34b751604cafe5d43f3abd4d7cfd Signed-off-by: Yuta Doi --- src/main.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 762981f..3a60b94 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -699,22 +699,6 @@ void on_event(const char *event, struct json_object *object){ } }); } - else if (g_afb_instance->lcc_.isChangedCarState()) { - // If car state is changed - HMI_DEBUG("wm", "Car state is changed"); - - // Get car state - const char* car_state = g_afb_instance->lcc_.getCurrentCarState(); - - // Allocate window resource - g_afb_instance->app.allocateWindowResource(car_state, nullptr, - nullptr, nullptr, - [](const char* errmsg){ - if (errmsg != nullptr) { - HMI_ERROR("wm", errmsg); - } - }); - } else if (g_afb_instance->lcc_.isChangedLampState()) { // If lamp state is changed HMI_DEBUG("wm", "Lamp state is changed"); -- cgit 1.2.3-korg