From c92aa22d1c1e60905e8dbe6e8568b6c40fc42b57 Mon Sep 17 00:00:00 2001 From: Hyotaek Shim Date: Tue, 8 Oct 2019 19:05:49 +0900 Subject: [PATCH] Remove unused code regarding /usr/bin/save_blenv Change-Id: If4418c367927abe2edef46afedb4831797eef154 Signed-off-by: Hyotaek Shim --- plugins/iot/display/core.c | 5 ----- plugins/mobile/display/core.c | 5 ----- plugins/tv/display/core.c | 5 ----- plugins/wearable/display/core.c | 5 ----- 4 files changed, 20 deletions(-) diff --git a/plugins/iot/display/core.c b/plugins/iot/display/core.c index 50e45f6..ad7e29c 100644 --- a/plugins/iot/display/core.c +++ b/plugins/iot/display/core.c @@ -66,7 +66,6 @@ * @{ */ -#define SET_BRIGHTNESS_IN_BOOTLOADER "/usr/bin/save_blenv SLP_LCD_BRIGHT" #define LOCK_SCREEN_INPUT_TIMEOUT 10000 #define LOCK_SCREEN_CONTROL_TIMEOUT 5000 #define ALWAYS_ON_TIMEOUT 360000000 @@ -2189,7 +2188,6 @@ static int poll_callback(int condition, PMMsg *data) static int update_setting(int key_idx, int val) { - char buf[PATH_MAX]; int ret; switch (key_idx) { @@ -2252,9 +2250,6 @@ static int update_setting(int key_idx, int val) "escape dim state."); } backlight_ops.set_default_brt(val); - snprintf(buf, sizeof(buf), "%d", val); - _D("Brightness set in bl(%d).", val); - launch_evenif_exist(SET_BRIGHTNESS_IN_BOOTLOADER, buf); break; case SETTING_LOCK_SCREEN: set_lock_screen_state(val); diff --git a/plugins/mobile/display/core.c b/plugins/mobile/display/core.c index 7726cb5..6eaa984 100644 --- a/plugins/mobile/display/core.c +++ b/plugins/mobile/display/core.c @@ -68,7 +68,6 @@ * @{ */ -#define SET_BRIGHTNESS_IN_BOOTLOADER "/usr/bin/save_blenv SLP_LCD_BRIGHT" #define LOCK_SCREEN_INPUT_TIMEOUT 10000 #define LOCK_SCREEN_CONTROL_TIMEOUT 5000 #define ALWAYS_ON_TIMEOUT 360000000 @@ -2201,7 +2200,6 @@ static int poll_callback(int condition, PMMsg *data) static int update_setting(int key_idx, int val) { - char buf[PATH_MAX]; int ret; switch (key_idx) { @@ -2264,9 +2262,6 @@ static int update_setting(int key_idx, int val) "escape dim state."); } backlight_ops.set_default_brt(val); - snprintf(buf, sizeof(buf), "%d", val); - _D("Brightness set in bl(%d).", val); - launch_evenif_exist(SET_BRIGHTNESS_IN_BOOTLOADER, buf); break; case SETTING_LOCK_SCREEN: set_lock_screen_state(val); diff --git a/plugins/tv/display/core.c b/plugins/tv/display/core.c index 35fb9e2..2d94505 100644 --- a/plugins/tv/display/core.c +++ b/plugins/tv/display/core.c @@ -66,7 +66,6 @@ * @{ */ -#define SET_BRIGHTNESS_IN_BOOTLOADER "/usr/bin/save_blenv SLP_LCD_BRIGHT" #define LOCK_SCREEN_INPUT_TIMEOUT 10000 #define LOCK_SCREEN_CONTROL_TIMEOUT 5000 #define ALWAYS_ON_TIMEOUT 360000000 @@ -2189,7 +2188,6 @@ static int poll_callback(int condition, PMMsg *data) static int update_setting(int key_idx, int val) { - char buf[PATH_MAX]; int ret; switch (key_idx) { @@ -2252,9 +2250,6 @@ static int update_setting(int key_idx, int val) "escape dim state."); } backlight_ops.set_default_brt(val); - snprintf(buf, sizeof(buf), "%d", val); - _D("Brightness set in bl(%d).", val); - launch_evenif_exist(SET_BRIGHTNESS_IN_BOOTLOADER, buf); break; case SETTING_LOCK_SCREEN: set_lock_screen_state(val); diff --git a/plugins/wearable/display/core.c b/plugins/wearable/display/core.c index 0b984da..1e5998c 100644 --- a/plugins/wearable/display/core.c +++ b/plugins/wearable/display/core.c @@ -67,7 +67,6 @@ * @{ */ -#define SET_BRIGHTNESS_IN_BOOTLOADER "/usr/bin/save_blenv SLP_LCD_BRIGHT" #define LOCK_SCREEN_INPUT_TIMEOUT 10000 #define LOCK_SCREEN_CONTROL_TIMEOUT 5000 #define ALWAYS_ON_TIMEOUT 360000000 @@ -2211,7 +2210,6 @@ static int poll_callback(int condition, PMMsg *data) static int update_setting(int key_idx, int val) { - char buf[PATH_MAX]; int ret; switch (key_idx) { @@ -2274,9 +2272,6 @@ static int update_setting(int key_idx, int val) "escape dim state."); } backlight_ops.set_default_brt(val); - snprintf(buf, sizeof(buf), "%d", val); - _D("Brightness set in bl(%d).", val); - launch_evenif_exist(SET_BRIGHTNESS_IN_BOOTLOADER, buf); break; case SETTING_LOCK_SCREEN: set_lock_screen_state(val); -- 2.7.4