From e6859ca0312c2f41310ec274f674486a553caa49 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 8 May 2020 21:53:59 +0200 Subject: [PATCH] gluon-web-model: remove unused tag_invalid and tag_missing fields --- .../luasrc/usr/lib/lua/gluon/web/model/classes.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/package/gluon-web-model/luasrc/usr/lib/lua/gluon/web/model/classes.lua b/package/gluon-web-model/luasrc/usr/lib/lua/gluon/web/model/classes.lua index 8fdc0165..7968db0e 100644 --- a/package/gluon-web-model/luasrc/usr/lib/lua/gluon/web/model/classes.lua +++ b/package/gluon-web-model/luasrc/usr/lib/lua/gluon/web/model/classes.lua @@ -207,20 +207,11 @@ end function AbstractValue:add_error(type, msg) self.error = msg or type - - if type == "invalid" then - self.tag_invalid = true - elseif type == "missing" then - self.tag_missing = true - end - self.state = M.FORM_INVALID end function AbstractValue:reset() self.error = nil - self.tag_invalid = nil - self.tag_missing = nil self.data = nil self.state = M.FORM_NODATA