Skip to content

A free open source IT asset/license management system

Remove more dead code

Marcus Moore9b293afaac70
diff --git a/app/Models/Loggable.php b/app/Models/Loggable.php
index ae5d554882..a246503165 100644
--- a/app/Models/Loggable.php
+++ b/app/Models/Loggable.php
@@ -117,7 +117,6 @@ trait Loggable
*/
public function logCheckin($target, $note, $action_date = null, $originalValues = [])
{
- $settings = Setting::getSettings();
$log = new Actionlog;
if($target != null){
@@ -171,39 +170,6 @@ trait Loggable
$log->logaction('checkin from');
-// $params = [
-// 'target' => $target,
-// 'item' => $log->item,
-// 'admin' => $log->user,
-// 'note' => $note,
-// 'target_type' => $log->target_type,
-// 'settings' => $settings,
-// ];
-//
-//
-// $checkinClass = null;
-//
-// if (method_exists($target, 'notify')) {
-// try {
-// $target->notify(new static::$checkinClass($params));
-// } catch (\Exception $e) {
-// Log::debug($e);
-// }
-//
-// }
-//
-// // Send to the admin, if settings dictate
-// $recipient = new \App\Models\Recipients\AdminRecipient();
-//
-// if (($settings->admin_cc_email!='') && (static::$checkinClass!='')) {
-// try {
-// $recipient->notify(new static::$checkinClass($params));
-// } catch (\Exception $e) {
-// Log::debug($e);
-// }
-//
-// }
-
return $log;
}