From 98da1f13a109d056d0c53b03a01b2f3d31f4b67f Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 16 Sep 2021 15:07:14 -0600 Subject: [PATCH] remove un-needed code --- .../components/admin/servers/ServerStartupContainer.tsx | 4 ---- routes/api-application.php | 1 - 2 files changed, 5 deletions(-) diff --git a/resources/scripts/components/admin/servers/ServerStartupContainer.tsx b/resources/scripts/components/admin/servers/ServerStartupContainer.tsx index 1306d32c..5bc05fc0 100644 --- a/resources/scripts/components/admin/servers/ServerStartupContainer.tsx +++ b/resources/scripts/components/admin/servers/ServerStartupContainer.tsx @@ -99,10 +99,6 @@ function ServerVariableContainer ({ variable, defaultValue }: { variable: EggVar useEffect(() => { setFieldValue(key, defaultValue); - - // return () => { - // setFieldValue(key, undefined); - // }; }, [ variable, defaultValue ]); return ( diff --git a/routes/api-application.php b/routes/api-application.php index 1b8f230a..85fcf11d 100644 --- a/routes/api-application.php +++ b/routes/api-application.php @@ -165,7 +165,6 @@ Route::group(['prefix' => '/servers'], function () { Route::get('/external/{external_id}', [\Pterodactyl\Http\Controllers\Api\Application\Servers\ExternalServerController::class, 'index']); Route::patch('/{server}', [\Pterodactyl\Http\Controllers\Api\Application\Servers\ServerController::class, 'update']); -// Route::patch('/{server}/build', [\Pterodactyl\Http\Controllers\Api\Application\Servers\ServerDetailsController::class, 'build']); Route::patch('/{server}/startup', [\Pterodactyl\Http\Controllers\Api\Application\Servers\StartupController::class, 'index']); Route::post('/', [\Pterodactyl\Http\Controllers\Api\Application\Servers\ServerController::class, 'store']);