summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-25 17:14:41 +0100
committerSimon Rettberg2019-03-25 17:14:41 +0100
commitf00d683908e9e7acdaf64cf222e560a302278ee8 (patch)
tree9d25579eaf1a264b1cd28aa5173d73a982d00351
parent[serversetup-bwlp-ipxe] Direct boot for menus with one item (diff)
downloadslx-admin-f00d683908e9e7acdaf64cf222e560a302278ee8.tar.gz
slx-admin-f00d683908e9e7acdaf64cf222e560a302278ee8.tar.xz
slx-admin-f00d683908e9e7acdaf64cf222e560a302278ee8.zip
[serversetup-bwlp-ipxe] Kill unused PxeMenu->hash()
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/pxelinux.inc.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/pxelinux.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/pxelinux.inc.php
index 63fdf674..ff548c4c 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/pxelinux.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/pxelinux.inc.php
@@ -166,39 +166,6 @@ class PxeMenu
*/
public $default;
- public function hash($fuzzy)
- {
- $ctx = hash_init('md5');
- if (!$fuzzy) {
- hash_update($ctx, $this->title);
- hash_update($ctx, $this->timeoutLabel);
- }
- hash_update($ctx, $this->timeoutMs);
- foreach ($this->sections as $section) {
- if ($fuzzy) {
- hash_update($ctx, mb_strtolower(preg_replace('/[^a-zA-Z0-9]/', '', $section->title)));
- } else {
- hash_update($ctx, $section->label);
- hash_update($ctx, $section->title);
- hash_update($ctx, $section->indent);
- hash_update($ctx, $section->helpText);
- hash_update($ctx, $section->isDefault);
- hash_update($ctx, $section->hotkey);
- }
- hash_update($ctx, $section->kernel);
- hash_update($ctx, $section->append);
- hash_update($ctx, $section->ipAppend);
- hash_update($ctx, $section->passwd);
- hash_update($ctx, $section->isHidden);
- hash_update($ctx, $section->isDisabled);
- hash_update($ctx, $section->localBoot);
- foreach ($section->initrd as $initrd) {
- hash_update($ctx, $initrd);
- }
- }
- return hash_final($ctx, false);
- }
-
/**
* Check if any of the sections has the given label.
*/