From 9fa2e59e1facbd82f6ffd8ad7fdf8fa19cf75656 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 29 Aug 2023 10:02:39 +0200 Subject: [PATCH] system: remove unused ifconfig property from Gateways class Keep a shim with a default value in order to remove this gracefully from the rest of the code since it was required before. --- .../mvc/app/library/OPNsense/Routing/Gateways.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php index ae4c513d7..230e16566 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php +++ b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php @@ -39,19 +39,15 @@ class Gateways { var $configHandle = null; var $gatewaySeq = 0; - var $ifconfig = array(); var $cached_gateways = array(); /** * Construct new gateways object - * @param array $ifconfig containing serialized ifconfig data + * @param array $unused XXX shim to be removed after 24.1 when all callers are fixed */ - public function __construct(array $ifconfig) + public function __construct(array $unused = []) { $this->configHandle = Config::getInstance()->object(); - if ($ifconfig !== null) { - $this->ifconfig = $ifconfig; - } } /**