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
parent c90b400ce5
commit 8f64566a10
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -179,20 +179,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