luci-app-fwknopd: remove unused vars
authorSergey Ponomarev <stokito@gmail.com>
Sat, 2 Mar 2024 00:47:10 +0000 (02:47 +0200)
committerPaul Donald <itsascambutmailmeanyway@gmail.com>
Sat, 2 Mar 2024 17:00:34 +0000 (18:00 +0100)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js

index 9a2269017035825f344edea25c3d6d45b7a25e73..f95df1320f2f3ff4fa8142c9242f47348f9ca688 100644 (file)
@@ -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');