From c00295b6c4a0ffc0a9643a94deff2b61754a36f4 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sat, 2 Mar 2024 02:47:10 +0200 Subject: [PATCH] luci-app-fwknopd: remove unused vars Signed-off-by: Sergey Ponomarev (cherry picked from commit 07c41852dd570d3ffd2179d455e59bff1df5147c) --- .../htdocs/luci-static/resources/view/fwknopd.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js b/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js index 9a22690170..f95df1320f 100644 --- a/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js +++ b/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js @@ -403,26 +403,22 @@ var ParseButton = form.Button.extend({ }, renderStanzas: function(stanzas) { - var svgJobs = []; var config = {}; config.access = stanzas; var m, s, o; - var accessSection; - var sourceValue; - m = new form.JSONMap(config, null, _('Custom configuration read from /etc/fwknop/access.conf.')); m.readonly = true; // set the access.conf settings - accessSection = s = m.section(form.TypedSection, 'access', _('access.conf stanzas')); + s = m.section(form.TypedSection, 'access', _('access.conf stanzas')); s.anonymous = true; - var qrCode = s.option(QrCodeValue, 'qr', _('QR code'), ('QR code to configure fwknopd Android application.')); + o = s.option(QrCodeValue, 'qr', _('QR code'), ('QR code to configure fwknopd Android application.')); - sourceValue = s.option(form.Value, 'SOURCE', 'SOURCE'); - s.option(form.Value, 'DESTINATION', 'DESTINATION'); + o = s.option(form.Value, 'SOURCE', 'SOURCE'); + o = s.option(form.Value, 'DESTINATION', 'DESTINATION'); o = s.option(form.Value, 'KEY', 'KEY'); o.depends('keytype', 'KEY'); -- 2.30.2