refactoring - remove unused code

This commit is contained in:
Saeed Vaziry
2024-03-06 20:33:33 +01:00
parent cfc0645002
commit 9d705592da
32 changed files with 3 additions and 442 deletions

View File

@ -2,7 +2,6 @@
namespace App\Jobs\SshKey;
use App\Events\Broadcast;
use App\Jobs\Job;
use App\Models\Server;
use App\Models\SshKey;
@ -31,20 +30,10 @@ public function handle()
'delete-ssh-key'
);
$this->server->sshKeys()->detach($this->sshKey);
event(
new Broadcast('delete-ssh-key-finished', [
'sshKey' => $this->sshKey,
])
);
}
public function failed(): void
{
$this->server->sshKeys()->attach($this->sshKey);
event(
new Broadcast('delete-ssh-key-failed', [
'sshKey' => $this->sshKey,
])
);
}
}