Remove unused code

This commit is contained in:
gplane 2017-11-29 16:53:17 +08:00
parent b834264c3e
commit 946e0c12e3
3 changed files with 0 additions and 48 deletions

View File

@ -51,8 +51,6 @@ class PlayerController extends Controller
[
'only' => ['delete', 'rename', 'setTexture', 'clearTexture', 'setPreference']
]);
return json('dd', 0);
}
public function index()

View File

@ -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
]));
}
}

View File

@ -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,