comments and removed unused variables

This commit is contained in:
Mikayla Fischler 2024-10-14 12:12:35 -04:00
parent 60ff22f57d
commit 440989aed6
3 changed files with 11 additions and 16 deletions

View File

@ -248,7 +248,7 @@ return function (args)
local NumberField, id = e.complete(true) local NumberField, id = e.complete(true)
-- get the numeric value of this field -- get the numeric value of this field
---@return number ---@return number value the value, or 0 if not a valid number
function NumberField.get_numeric() function NumberField.get_numeric()
return tonumber(e.value) or 0 return tonumber(e.value) or 0
end end

View File

@ -6,7 +6,6 @@ local const = require("scada-common.constants")
local psil = require("scada-common.psil") local psil = require("scada-common.psil")
local types = require("scada-common.types") local types = require("scada-common.types")
local util = require("scada-common.util") local util = require("scada-common.util")
local log = require("scada-common.log")
local process = require("pocket.process") local process = require("pocket.process")

View File

@ -25,31 +25,27 @@ local RadioButton = require("graphics.elements.controls.RadioButton")
local NumberField = require("graphics.elements.form.NumberField") local NumberField = require("graphics.elements.form.NumberField")
local DataIndicator = require("graphics.elements.indicators.DataIndicator")
local IconIndicator = require("graphics.elements.indicators.IconIndicator") local IconIndicator = require("graphics.elements.indicators.IconIndicator")
local AUTO_GROUP = types.AUTO_GROUP local ALIGN = core.ALIGN
local cpair = core.cpair
local ALIGN = core.ALIGN
local cpair = core.cpair
local border = core.border local border = core.border
local APP_ID = pocket.APP_ID local APP_ID = pocket.APP_ID
local label_fg_bg = style.label local label_fg_bg = style.label
local lu_col = style.label_unit_pair local text_fg = style.text_fg
local text_fg = style.text_fg
local field_fg_bg = style.field local field_fg_bg = style.field
local field_dis_fg_bg = style.field_disable local field_dis_fg_bg = style.field_disable
local red_ind_s = style.icon_states.red_ind_s local red_ind_s = style.icon_states.red_ind_s
local yel_ind_s = style.icon_states.yel_ind_s local yel_ind_s = style.icon_states.yel_ind_s
local grn_ind_s = style.icon_states.grn_ind_s local grn_ind_s = style.icon_states.grn_ind_s
local wht_ind_s = style.icon_states.wht_ind_s local wht_ind_s = style.icon_states.wht_ind_s
local hzd_fg_bg = style.hzd_fg_bg local hzd_fg_bg = style.hzd_fg_bg
local dis_colors = cpair(colors.white, colors.lightGray) local dis_colors = cpair(colors.white, colors.lightGray)
-- new process control page view -- new process control page view
---@param root Container parent ---@param root Container parent