]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Remove unused variables 2326/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 6 Jul 2018 07:42:06 +0000 (10:42 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 6 Jul 2018 07:42:06 +0000 (10:42 +0300)
.eslintrc.json
interface/js/app/config.js
interface/js/app/graph.js
interface/js/app/history.js
interface/js/app/symbols.js

index 4231abb4bfd24afb478fdbdb9da0295d6f8fc3c3..c5f2bc59cacb9533c9a5ff2bb6b2761199fc2f87 100644 (file)
@@ -80,7 +80,6 @@
         "no-undef": "off",
         "no-undefined": "off",
         "no-underscore-dangle": "off",
-        "no-unused-vars": "off",
         "no-use-before-define": "off",
         "one-var-declaration-per-line": "off",
         "prefer-spread": "off",
index 4f910ae8e9786a790493af7a1c7eefc919949a94..fe9d27a168b629a49888edca8465ac84f79cc521 100644 (file)
@@ -57,7 +57,6 @@ define(["jquery"],
 
         // @get maps id
         function getMaps(rspamd) {
-            var items = [];
             var $listmaps = $("#listMaps");
             $listmaps.closest(".widget-box").hide();
             $.ajax({
index 9418c7cfbcdcbbcddd0d368abe44689a1eea8ceb..de90c4a7321f3858f79d47f796052c1835b4ae39 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 define(["jquery", "d3evolution", "footable"],
-    function ($, D3Evolution, unused) {
+    function ($, D3Evolution) {
         var rrd_pie_config = {
             header: {},
             size: {
index b6399894af3aed47dea95d3e052d2efd74bf7ada..e8910818577e009cb58950f1f392870652c64e3d 100644 (file)
@@ -683,7 +683,7 @@ define(["jquery", "footable", "humanize"],
                     ft.errors = undefined;
                 }
                 if (checked_server === "All SERVERS") {
-                    rspamd.queryNeighbours("errors", function (data) {
+                    rspamd.queryNeighbours("errors", function () {
                         interface.getHistory(rspamd, tables, neighbours, checked_server);
                         interface.getErrors(rspamd, tables, neighbours, checked_server);
                     });
@@ -779,7 +779,6 @@ define(["jquery", "footable", "humanize"],
             });
         };
 
-        interface.setup = function (rspamd, tables) {
-        };
+        interface.setup = function () {};
         return interface;
     });
index 8b8160913ee1413d55f4a32ce34f946eae70e951..358deb0e5dd9cde9356b1a943fac7af27284d0fa 100644 (file)
@@ -153,7 +153,7 @@ define(["jquery", "footable"],
             return [items, distinct_groups];
         }
         // @get symbols into modal form
-        interface.getSymbols = function (rspamd, tables, checked_server) {
+        interface.getSymbols = function (rspamd) {
 
             $.ajax({
                 dataType: "json",
@@ -253,14 +253,14 @@ define(["jquery", "footable"],
                     rspamd.alertMessage("alert-modal alert-error", data.statusText);
                 }
             });
-            $(document).on("click", "#symbolsTable :button", function (event) {
+            $(document).on("click", "#symbolsTable :button", function () {
                 var value = $(this).data("save");
                 if (!value) return;
                 saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == "cluster");
             });
         };
 
-        interface.setup = function (rspamd, tables) {
+        interface.setup = function (rspamd) {
             $("#updateSymbols").on("click", function (e) {
                 e.preventDefault();
                 $.ajax({