Skip to content

Commit

Permalink
Merge pull request #170 from HACManchester/get-rid-of-acs-stuff
Browse files Browse the repository at this point in the history
Remove all the unused 'ACS' stuff
  • Loading branch information
rjackson authored Jun 9, 2024
2 parents beb06d3 + f912dd4 commit b2c2885
Show file tree
Hide file tree
Showing 76 changed files with 186 additions and 4,301 deletions.
39 changes: 0 additions & 39 deletions ACSDocs.md

This file was deleted.

57 changes: 0 additions & 57 deletions app/Entities/ACSNode.php

This file was deleted.

50 changes: 0 additions & 50 deletions app/Entities/Activity.php

This file was deleted.

37 changes: 0 additions & 37 deletions app/Entities/DetectedDevice.php

This file was deleted.

12 changes: 0 additions & 12 deletions app/Entities/Equipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @property Carbon $obtained_at
* @property Carbon $removed_at
* @property integer $usageCost
* @property string $device_key
* @property string $induction_category
* @package BB\Entities
*/
Expand All @@ -44,7 +43,6 @@ class Equipment extends Model
'room',
'detail',
'slug',
'device_key',
'description',
'help_text',
'managing_role_id',
Expand Down Expand Up @@ -108,16 +106,6 @@ public function role()
return $this->belongsTo('\BB\Entities\Role', 'managing_role_id');
}

/**
* Does the equipment have activity recorded against it
*
* @return bool
*/
public function hasActivity()
{
return !empty($this->device_key);
}

/**
* Does the equipment need an induction to use it
*
Expand Down
59 changes: 0 additions & 59 deletions app/Entities/EquipmentLog.php

This file was deleted.

19 changes: 0 additions & 19 deletions app/Entities/KeyFob.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,4 @@ public function scopeActive($query)
{
return $query->whereActive(true);
}

public static function lookup($fobId)
{
$record = self::where('key_id', '=', strtoupper($fobId))->active()->first();
if ( ! $record) {
throw new ModelNotFoundException;
}
return $record;
}

public static function lookupPartialTag($fobId)
{
$record = self::where('key_id', 'LIKE', '%' . strtoupper($fobId) . '%')->active()->first();
if ( ! $record) {
throw new ModelNotFoundException;
}
return $record;
}

}
2 changes: 0 additions & 2 deletions app/Entities/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
use Illuminate\Database\Eloquent\Model;

/**
* Class Activity
*
* @property integer $id
* @property integer $key_fob_id
* @property integer $user_id
Expand Down
56 changes: 0 additions & 56 deletions app/Events/MemberActivity.php

This file was deleted.

Loading

0 comments on commit b2c2885

Please sign in to comment.