From 546feeb190be8a14895abb36ff127c0271973ce5 Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 24 Nov 2023 21:59:42 +0000 Subject: [PATCH] Device - Edit: Remove deprecated code. --- app/devices/device_edit.php | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 903a9009ab..00628d37c4 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -1214,16 +1214,6 @@ if (empty($row['sip_port'])) { $row['sip_port'] = $_SESSION['provision']['line_sip_port']['numeric']; } if (empty($row['register_expires'])) { $row['register_expires'] = $_SESSION['provision']['line_register_expires']['numeric']; } - //determine whether to hide the element - if (empty($device_line_uuid) || !is_uuid($device_line_uuid)) { - $element['hidden'] = false; - $element['visibility'] = "visibility:visible;"; - } - else { - $element['hidden'] = true; - $element['visibility'] = "visibility:hidden;"; - } - //add the primary key uuid if (!empty($row['device_line_uuid']) && is_uuid($row['device_line_uuid'])) { echo " \n"; @@ -1537,15 +1527,6 @@ } echo " \n"; } - //determine whether to hide the element - if (empty($device_key_uuid) || !is_uuid($device_key_uuid)) { - $element['hidden'] = false; - $element['visibility'] = "visibility:visible;"; - } - else { - $element['hidden'] = true; - $element['visibility'] = "visibility:hidden;"; - } //add the primary key uuid if (!empty($row['device_key_uuid']) && is_uuid($row['device_key_uuid'])) { echo " \n"; @@ -1800,15 +1781,6 @@ $x = 0; foreach ($device_settings as $row) { - //determine whether to hide the element - if (empty($device_setting_uuid) || !is_uuid($device_setting_uuid)) { - $element['hidden'] = false; - $element['visibility'] = "visibility:visible;"; - } - else { - $element['hidden'] = true; - $element['visibility'] = "visibility:hidden;"; - } //add the primary key uuid if (!empty($row['device_setting_uuid']) && is_uuid($row['device_setting_uuid'])) { echo " \n";