Remove unused code

This commit is contained in:
Pig Fang 2017-12-16 21:03:57 +08:00
parent e4ee22ad75
commit 38b6307776

View File

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