Player: remove iusername premature optimization

This commit is contained in:
Dylan K. Taylor
2019-07-05 17:28:37 +01:00
parent 45b0cbc796
commit ceeed57118
2 changed files with 2 additions and 12 deletions

View File

@ -165,8 +165,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
/** @var string */
protected $username;
/** @var string */
protected $iusername;
/** @var string */
protected $displayName;
/** @var int */
protected $randomClientId;
@ -277,7 +275,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
$this->username = $username;
$this->displayName = $this->username;
$this->iusername = strtolower($this->username);
$this->locale = $this->playerInfo->getLocale();
$this->randomClientId = $this->playerInfo->getClientId();
@ -706,13 +703,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
return $this->username;
}
/**
* @return string
*/
public function getLowerCaseName() : string{
return $this->iusername;
}
/**
* Gets the "friendly" name to display of this player to use in the chat.
*