Skip to content

Commit 756a21f

Browse files
committed
Remove unused code
1 parent 34916e7 commit 756a21f

15 files changed

+21
-1126
lines changed

.phpunit.result.cache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

app/Http/Kernel.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
use Illuminate\Foundation\Http\Middleware\ValidatePostSize;
2929
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
3030
use Pterodactyl\Http\Middleware\Server\AccessingValidServer;
31-
use Pterodactyl\Http\Middleware\Server\AuthenticateAsSubuser;
3231
use Pterodactyl\Http\Middleware\Api\Daemon\DaemonAuthenticate;
3332
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
3433
use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode;
@@ -101,7 +100,6 @@ class Kernel extends HttpKernel
101100
'auth.basic' => AuthenticateWithBasicAuth::class,
102101
'guest' => RedirectIfAuthenticated::class,
103102
'server' => AccessingValidServer::class,
104-
'subuser.auth' => AuthenticateAsSubuser::class,
105103
'admin' => AdminAuthenticate::class,
106104
'csrf' => VerifyCsrfToken::class,
107105
'throttle' => ThrottleRequests::class,

app/Http/Middleware/Server/AuthenticateAsSubuser.php

Lines changed: 0 additions & 59 deletions
This file was deleted.

app/Providers/RouteServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function map()
3333
->namespace($this->namespace . '\Auth')
3434
->group(base_path('routes/auth.php'));
3535

36-
Route::middleware(['web', 'csrf', 'auth', 'server', 'subuser.auth', 'node.maintenance'])
36+
Route::middleware(['web', 'csrf', 'auth', 'server', 'node.maintenance'])
3737
->prefix('/api/server/{server}')
3838
->namespace($this->namespace . '\Server')
3939
->group(base_path('routes/server.php'));

app/Services/DaemonKeys/DaemonKeyCreationService.php

Lines changed: 0 additions & 87 deletions
This file was deleted.

app/Services/DaemonKeys/DaemonKeyProviderService.php

Lines changed: 0 additions & 121 deletions
This file was deleted.

app/Services/DaemonKeys/DaemonKeyUpdateService.php

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)