REF remove dead code in arcs

This commit is contained in:
Nathan Dwarshuis 2021-07-09 23:23:24 -04:00
parent 68b2b673b4
commit 39c964a39f
3 changed files with 1 additions and 26 deletions

2
core

@ -1 +1 @@
Subproject commit 09ed55940cd075ca33b1037482e1293321dcbe4a Subproject commit b9bcd174f57576f60c528b3deffd4c1764019a3a

View File

@ -237,14 +237,6 @@ end
-- ring -- ring
M.initRing = function(x, y, r) 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( return _G_Widget_.Arc(
_G_Widget_.make_semicircle( _G_Widget_.make_semicircle(
_G_Widget_.make_point(x, y), _G_Widget_.make_point(x, y),

View File

@ -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_X = _G_INIT_DATA_.RIGHT_X + DIAL_RADIUS + _DIAL_THICKNESS_ / 2
local DIAL_Y = header.bottom_y + 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( local dial = _G_Widget_.Dial(
_G_Widget_.make_semicircle( _G_Widget_.make_semicircle(
_G_Widget_.make_point(DIAL_X, DIAL_Y), _G_Widget_.make_point(DIAL_X, DIAL_Y),
@ -77,13 +67,6 @@ local dial = _G_Widget_.Dial(
_G_Patterns_.INDICATOR_FG_CRITICAL, _G_Patterns_.INDICATOR_FG_CRITICAL,
0.8 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( local cache_arc = _G_Widget_.Arc(
_G_Widget_.make_semicircle( _G_Widget_.make_semicircle(
_G_Widget_.make_point(DIAL_X, DIAL_Y), _G_Widget_.make_point(DIAL_X, DIAL_Y),