gluon-web-model: remove unused tag_invalid and tag_missing fields

This commit is contained in:
Matthias Schiffer 2020-05-08 21:53:59 +02:00 committed by Andreas Ziegler
parent 11a3b56617
commit e6859ca031
1 changed files with 0 additions and 9 deletions

View File

@ -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