From 9d786d9386df584d4aab96573cad895b2d4ac069 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 28 Nov 2023 13:43:33 +0000 Subject: [PATCH] Removed unused method Signed-off-by: snipe --- app/Models/Asset.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 7ef526d891..f23ff52f64 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -292,31 +292,6 @@ class Asset extends Depreciable } - /** - * Determines if an asset is available for checkout. - * This checks to see if it's checked out to an invalid (deleted) user - * OR if the assigned_to and deleted_at fields on the asset are empty AND - * that the status is deployable - * - * @author [A. Gianotto] [] - * @since [v3.0] - * @return bool - */ - public function isDeployableMeta() - { - - // The asset status is not archived and is deployable - if (($this->assetstatus) && ($this->assetstatus->archived == '0') && (! $this->deleted_at) - && ($this->assetstatus->deployable == '1')) - { - return true; - - } - - return false; - } - - /** * Checks the asset out to the target *