CS cleanup

This commit is contained in:
Dylan K. Taylor 2020-10-26 15:56:30 +00:00
parent 3f254bd49c
commit 4c0c2ebd24
7 changed files with 2 additions and 8 deletions

View File

@ -26,7 +26,6 @@ namespace pocketmine\block;
use Ds\Deque;
use pocketmine\block\tile\Banner as TileBanner;
use pocketmine\block\utils\BannerPattern;
use pocketmine\block\utils\BlockDataSerializer;
use pocketmine\block\utils\DyeColor;
use pocketmine\data\bedrock\DyeColorIdMap;
use pocketmine\item\Banner as ItemBanner;
@ -34,12 +33,10 @@ use pocketmine\item\Item;
use pocketmine\item\ItemFactory;
use pocketmine\item\ItemIds;
use pocketmine\math\AxisAlignedBB;
use pocketmine\math\Facing;
use pocketmine\math\Vector3;
use pocketmine\player\Player;
use pocketmine\world\BlockTransaction;
use function assert;
use function floor;
abstract class BaseBanner extends Transparent{
/** @var DyeColor */

View File

@ -63,8 +63,8 @@ use function cos;
use function count;
use function deg2rad;
use function floor;
use function fmod;
use function get_class;
use function is_array;
use function is_infinite;
use function is_nan;
use function lcg_value;

View File

@ -28,7 +28,6 @@ use pocketmine\block\Block;
use pocketmine\block\tile\Banner as TileBanner;
use pocketmine\block\utils\BannerPattern;
use pocketmine\block\utils\DyeColor;
use pocketmine\block\VanillaBlocks;
use pocketmine\data\bedrock\DyeColorIdMap;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\nbt\tag\ListTag;

View File

@ -24,7 +24,6 @@ declare(strict_types=1);
namespace pocketmine\item;
use pocketmine\utils\CloningRegistryTrait;
use pocketmine\utils\RegistryTrait;
use function assert;
/**

View File

@ -64,7 +64,6 @@ use pocketmine\network\mcpe\protocol\InteractPacket;
use pocketmine\network\mcpe\protocol\InventoryTransactionPacket;
use pocketmine\network\mcpe\protocol\ItemFrameDropItemPacket;
use pocketmine\network\mcpe\protocol\LabTablePacket;
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
use pocketmine\network\mcpe\protocol\LevelSoundEventPacketV1;
use pocketmine\network\mcpe\protocol\MapInfoRequestPacket;
use pocketmine\network\mcpe\protocol\MobArmorEquipmentPacket;

View File

@ -40,6 +40,7 @@ use function array_fill;
use function array_filter;
use function array_map;
use function count;
use function max;
use function str_repeat;
class Chunk{

View File

@ -294,7 +294,6 @@ abstract class Noise{
}
}
/**
* The following code originally called trilinearLerp() in a loop, but it was later inlined to elide function
* call overhead.