From 39c964a39f1246ee1dbf3e02f4d89e5a166812bf Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Fri, 9 Jul 2021 23:23:24 -0400 Subject: [PATCH] REF remove dead code in arcs --- core | 2 +- drawing/Common.lua | 8 -------- drawing/Memory.lua | 17 ----------------- 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/core b/core index 09ed559..b9bcd17 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 09ed55940cd075ca33b1037482e1293321dcbe4a +Subproject commit b9bcd174f57576f60c528b3deffd4c1764019a3a diff --git a/drawing/Common.lua b/drawing/Common.lua index 06f675a..797a718 100644 --- a/drawing/Common.lua +++ b/drawing/Common.lua @@ -237,14 +237,6 @@ end -- ring M.initRing = function(x, y, r) - -- return _G_Widget_.Arc{ - -- x = x, - -- y = y, - -- radius = r, - -- theta0 = 0, - -- theta1 = 360, - -- arc_pattern = _G_Patterns_.BORDER_FG - -- } return _G_Widget_.Arc( _G_Widget_.make_semicircle( _G_Widget_.make_point(x, y), diff --git a/drawing/Memory.lua b/drawing/Memory.lua index 55f19b7..be19f3a 100644 --- a/drawing/Memory.lua +++ b/drawing/Memory.lua @@ -54,16 +54,6 @@ local DIAL_THETA_1 = math.rad(360) local DIAL_X = _G_INIT_DATA_.RIGHT_X + DIAL_RADIUS + _DIAL_THICKNESS_ / 2 local DIAL_Y = header.bottom_y + DIAL_RADIUS + _DIAL_THICKNESS_ / 2 --- local dial = _G_Widget_.Dial{ --- x = DIAL_X, --- y = DIAL_Y, --- radius = DIAL_RADIUS, --- thickness = _DIAL_THICKNESS_, --- critical_limit = 0.8, --- dial_pattern = _G_Patterns_.INDICATOR_FG_PRIMARY, --- critical_pattern = _G_Patterns_.INDICATOR_FG_CRITICAL, --- arc_pattern = _G_Patterns_.INDICATOR_BG --- } local dial = _G_Widget_.Dial( _G_Widget_.make_semicircle( _G_Widget_.make_point(DIAL_X, DIAL_Y), @@ -77,13 +67,6 @@ local dial = _G_Widget_.Dial( _G_Patterns_.INDICATOR_FG_CRITICAL, 0.8 ) --- local cache_arc = _G_Widget_.Arc{ --- x = DIAL_X, --- y = DIAL_Y, --- radius = DIAL_RADIUS, --- thickness = _DIAL_THICKNESS_, --- arc_pattern = _G_Patterns_.INDICATOR_FG_SECONDARY --- } local cache_arc = _G_Widget_.Arc( _G_Widget_.make_semicircle( _G_Widget_.make_point(DIAL_X, DIAL_Y),