From 48d7005a8ba3da19d26b332f4f28569221edfa13 Mon Sep 17 00:00:00 2001 From: phl0 Date: Tue, 19 Dec 2023 18:02:52 +0100 Subject: [PATCH] Remove unneeded code --- application/libraries/DxccFlag.php | 36 ------------------------------ 1 file changed, 36 deletions(-) diff --git a/application/libraries/DxccFlag.php b/application/libraries/DxccFlag.php index 5946310d..05d78641 100644 --- a/application/libraries/DxccFlag.php +++ b/application/libraries/DxccFlag.php @@ -412,40 +412,4 @@ class DxccFlag { return $this->dxccFlags[$dxcc]; } - - /** - * Set the country code aliases. - * - * @param array $aliases - */ - public function setAliases(array $aliases) - { - $this->aliases = []; - - foreach ($aliases as $alias => $countryCode) { - $this->aliases[strtoupper($alias)] = strtoupper($countryCode); - } - } - - /** - * Convert the given character to unicode. - * - * @param string $char - * @return string - */ - private function toUnicode($char) - { - return mb_convert_encoding('&#'.self::toRegionalIndicator($char).';', 'UTF-8', 'HTML-ENTITIES'); - } - - /** - * Convert the given characters to it's regional indicator codepoint. - * - * @param string $char - * @return int - */ - private function toRegionalIndicator($char) - { - return ord($char) + self::INDICATOR_OFFSET; - } }