From 653c13201378f6e86c08ce3bd2b8d7578cefde13 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 19 Aug 2018 12:09:50 +0200 Subject: [PATCH] gluon-web-model: remove unused Section attribute "fields" --- .../luasrc/usr/lib/lua/gluon/web/model/classes.lua | 2 -- 1 file changed, 2 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 ac769692..f03996b1 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 @@ -171,7 +171,6 @@ Section = class(Node) function Section:__init__(...) Node.__init__(self, ...) - self.fields = {} self.template = "model/section" end @@ -180,7 +179,6 @@ function Section:option(t, option, title, description, ...) local obj = t(title, description, option, ...) self:append(obj) - self.fields[option] = obj return obj end