From 067aad95467bf43daf1c41db117ddf40865c6195 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 18 May 2018 18:51:18 +0100 Subject: [PATCH] PocketMine.php: Remove unused \pocketmine\ANSI constant Terminal::hasFormattingCodes() should be used instead (this is also portable across threads even if constants aren't inherited by child threads, provided that the child thread has an autoloader available. --- src/pocketmine/PocketMine.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index 9a9e8c21a..0bfdb26e6 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -221,9 +221,6 @@ namespace pocketmine { define('pocketmine\DATA', isset($opts["data"]) ? $opts["data"] . DIRECTORY_SEPARATOR : \realpath(\getcwd()) . DIRECTORY_SEPARATOR); define('pocketmine\PLUGIN_PATH', isset($opts["plugins"]) ? $opts["plugins"] . DIRECTORY_SEPARATOR : \realpath(\getcwd()) . DIRECTORY_SEPARATOR . "plugins" . DIRECTORY_SEPARATOR); - //hasFormattingCodes() initializes static colour codes on the fly - define('pocketmine\ANSI', Terminal::hasFormattingCodes()); - if(!file_exists(\pocketmine\DATA)){ mkdir(\pocketmine\DATA, 0777, true); }