From 38b630777694e4ac01eb508f864fbd8aa2466240 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 16 Dec 2017 21:03:57 +0800 Subject: [PATCH] Remove unused code --- app/Models/Texture.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/Models/Texture.php b/app/Models/Texture.php index 4ccdb2b0..d9c989bd 100644 --- a/app/Models/Texture.php +++ b/app/Models/Texture.php @@ -9,16 +9,6 @@ class Texture extends Model public $primaryKey = 'tid'; public $timestamps = false; - public static function checkTextureOccupied($tid) - { - $skin_type_map = ["steve", "alex", "cape"]; - for ($i = 0; $i <= 2; $i++) { - if (Player::where('tid_'.$skin_type_map[$i], $tid)->count() > 0) - return true; - } - return false; - } - public function setPrivacy($public) { $this->public = $public ? "1" : "0";