Remove unused code
This commit is contained in:
parent
b834264c3e
commit
946e0c12e3
|
|
@ -51,8 +51,6 @@ class PlayerController extends Controller
|
|||
[
|
||||
'only' => ['delete', 'rename', 'setTexture', 'clearTexture', 'setPreference']
|
||||
]);
|
||||
|
||||
return json('dd', 0);
|
||||
}
|
||||
|
||||
public function index()
|
||||
|
|
|
|||
|
|
@ -1,45 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use Session;
|
||||
|
||||
/**
|
||||
* @see \Illuminate\Support\Facades\View
|
||||
*/
|
||||
class View extends \Illuminate\Support\Facades\View
|
||||
{
|
||||
public static function show($view, $data = [], $mergeData = [])
|
||||
{
|
||||
echo self::make($view, $data, $mergeData)->render();
|
||||
}
|
||||
|
||||
// function reload
|
||||
public static function json()
|
||||
{
|
||||
@header('Content-type: application/json; charset=utf-8');
|
||||
$args = func_get_args();
|
||||
if (count($args) == 1) {
|
||||
self::jsonCustom($args[0]);
|
||||
} elseif(count($args) == 2) {
|
||||
self::jsonException($args[0], $args[1]);
|
||||
}
|
||||
}
|
||||
|
||||
private static function jsonCustom(Array $array)
|
||||
{
|
||||
if (is_array($array)) {
|
||||
Session::save();
|
||||
exit(json_encode($array));
|
||||
}
|
||||
}
|
||||
|
||||
private static function jsonException($msg, $errno)
|
||||
{
|
||||
Session::save();
|
||||
exit(json_encode([
|
||||
'errno' => $errno,
|
||||
'msg' => $msg
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
|
@ -227,7 +227,6 @@ return [
|
|||
/**
|
||||
* Blessing Skin
|
||||
*/
|
||||
'View' => App\Services\View::class,
|
||||
'Option' => App\Services\Facades\Option::class,
|
||||
'Utils' => App\Services\Utils::class,
|
||||
'Minecraft' => App\Services\Minecraft::class,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user