From 97eb8faab0984f1dc1245e3ce37cb804214d2475 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 22 Feb 2020 09:57:27 +0300 Subject: [PATCH] (mc_skin_lines_load_frm): cleanup, fix coding style. Signed-off-by: Andrew Borodin --- lib/skin/lines.c | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/lib/skin/lines.c b/lib/skin/lines.c index eed05e93d..26be5fbf9 100644 --- a/lib/skin/lines.c +++ b/lib/skin/lines.c @@ -44,47 +44,12 @@ static int mc_skin_lines_load_frm (mc_skin_t * mc_skin, const char *name) { int ret; - char *frm_val = NULL; + char *frm_val; + frm_val = mc_config_get_string_raw (mc_skin->config, "Lines", name, " "); ret = mc_tty_normalize_lines_char (frm_val); - g_free (frm_val); -#if 0 - switch (ret) - { - case 0x80: - ret = ACS_HLINE; - break; - case 0x81: - ret = ACS_VLINE; - break; - case 0x82: - ret = ACS_ULCORNER; - break; - case 0x83: - ret = ACS_URCORNER; - break; - case 0x84: - ret = ACS_LLCORNER; - break; - case 0x85: - ret = ACS_LRCORNER; - break; - case 0x86: - ret = ACS_LTEE; - break; - case 0x87: - ret = ACS_RTEE; - break; - case 0x8a: - ret = ACS_PLUS; - break; - default: - break; - } -#endif - return ret; }