Remove unneeded code

This commit is contained in:
phl0
2023-12-19 18:02:52 +01:00
parent 7dfc7765cb
commit 48d7005a8b

View File

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