From: David Härdeman Date: Wed, 15 Oct 2025 18:05:27 +0000 (+0200) Subject: luci-mod-status: remove superfluous argument X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=6f7fdff04111c9922d2cd647855a8ef715f06ba4;p=openwrt-luci.git luci-mod-status: remove superfluous argument As part of the commit adding MAC vendor identification (PR #7931), and subsequent fixups, parseRoutes() grew an unused macs argument. Signed-off-by: David Härdeman --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js index 79ee5acef6..6b249a0fbe 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js @@ -114,7 +114,7 @@ return view.extend({ return res; }, - parseRoutes(routes, macs, networks, v6) { + parseRoutes(routes, networks, v6) { const res = []; for (const line of routes.trim().split(/\n/)) { @@ -226,7 +226,7 @@ return view.extend({ cbi_update_table(neigh4tbl, this.parseNeighbs(ip4neigh, macdata, networks, false), E('em', _('No entries available')) ); - cbi_update_table(route4tbl, this.parseRoutes(ip4route, macdata, networks, false), + cbi_update_table(route4tbl, this.parseRoutes(ip4route, networks, false), E('em', _('No entries available')) ); cbi_update_table(rule4tbl, this.parseRules(ip4rule), @@ -235,7 +235,7 @@ return view.extend({ cbi_update_table(neigh6tbl, this.parseNeighbs(ip6neigh, macdata, networks, true), E('em', _('No entries available')) ); - cbi_update_table(route6tbl, this.parseRoutes(ip6route, macdata, networks, true), + cbi_update_table(route6tbl, this.parseRoutes(ip6route, networks, true), E('em', _('No entries available')) ); cbi_update_table(rule6tbl, this.parseRules(ip6rule), diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js index 37409f721d..5ca5b3a51a 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js @@ -125,7 +125,7 @@ return view.extend({ return res; }, - parseRoutes(routes, macs, networks, v6) { + parseRoutes(routes, networks, v6) { const res = []; for (const rt of this.parseJSON(routes)) { @@ -280,7 +280,7 @@ return view.extend({ cbi_update_table(neigh4tbl, this.parseNeighbs(ip4neighbs, macdata, networks, false), E('em', _('No entries available')) ); - cbi_update_table(route4tbl, this.parseRoutes(ip4routes, macdata, networks, false), + cbi_update_table(route4tbl, this.parseRoutes(ip4routes, networks, false), E('em', _('No entries available')) ); cbi_update_table(rule4tbl, this.parseRules(ip4rules), @@ -289,7 +289,7 @@ return view.extend({ cbi_update_table(neigh6tbl, this.parseNeighbs(ip6neighbs, macdata, networks, true), E('em', _('No entries available')) ); - cbi_update_table(route6tbl, this.parseRoutes(ip6routes, macdata, networks, true), + cbi_update_table(route6tbl, this.parseRoutes(ip6routes, networks, true), E('em', _('No entries available')) ); cbi_update_table(rule6tbl, this.parseRules(ip6rules),