From 17d1ed41be6c245128cd81ab1cec23c6a1f9faf2 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 5 Jan 2020 21:17:59 +0100 Subject: [PATCH] cc_frm_clock: clean up, remove unused var and comments --- src/gui/components/cc_frm_clock.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/components/cc_frm_clock.cpp b/src/gui/components/cc_frm_clock.cpp index 72aa7c54f..03e7c8e46 100644 --- a/src/gui/components/cc_frm_clock.cpp +++ b/src/gui/components/cc_frm_clock.cpp @@ -224,7 +224,7 @@ void CComponentsFrmClock::initCCLockItems() int y_tmp = y; const bool force_repaint = cl_force_repaint; -// dprintf(DEBUG_NORMAL, "\033[33m[CComponentsFrmClock][%s - %d], clock width width %d \033[0m\n", __func__, __LINE__, width); + /* modify available label items with current segment chars * we are using segments with only one char per segment, * these chars are predefined via format string @@ -290,15 +290,12 @@ void CComponentsFrmClock::initCCLockItems() cl_width += lbl->getWidth();//w_tmp; h_text_min = max(lbl->getHeight(), height); height = max(lbl->getHeight(), height); -// dprintf(DEBUG_NORMAL, "\033[33m[CComponentsFrmClock][%s - %d], clock width width %d cl_width = %d\033[0m\n", __func__, __LINE__, width, cl_width); } //set required width for clock (this) - int w_std = width; if (cl_width > width){ width = cl_width; } -// dprintf(DEBUG_NORMAL, "\033[33m[CComponentsFrmClock][%s - %d], clock width width %d w_std %d cl_width = %d\033[0m\n", __func__, __LINE__, width, w_std, cl_width); //use first item as reference and set x and y position to the 1st segement item with definied alignment //ensure unsigned position values