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.
This commit is contained in:
Franco Fichtner 2023-08-29 10:02:39 +02:00
parent c32c0a6591
commit 9fa2e59e1f

View File

@ -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;
}
}
/**