Skip to content

Commit

Permalink
Remove unused appliance massive actions (#18757)
Browse files Browse the repository at this point in the history
* remove unused appliance massive actions

* changelog
  • Loading branch information
cconard96 authored Jan 23, 2025
1 parent 51387d7 commit 3f74e92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ The present file will list all changes made to the project; according to the
- Handling of encoded/escaped value in `autoName()`.
- `closeDBConnections`
- `regenerateTreeCompleteName()`
- `Appliance::getMassiveActionsForItemtype()`
- `AuthLDAP::ldapChooseDirectory()`
- `AuthLDAP::displayLdapFilter()`
- `AuthLDAP::dropdownUserDeletedActions()`
Expand Down
16 changes: 0 additions & 16 deletions src/Appliance.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,22 +511,6 @@ public function getSpecificMassiveActions($checkitem = null)
return $actions;
}

public static function getMassiveActionsForItemtype(
array &$actions,
$itemtype,
$is_deleted = false,
?CommonDBTM $checkitem = null
) {
if (in_array($itemtype, self::getTypes())) {
if (self::canUpdate()) {
$action_prefix = 'Appliance_Item' . MassiveAction::CLASS_ACTION_SEPARATOR;
$actions[$action_prefix . 'add'] = "<i class='fa-fw fas fa-file-contract'></i>" .
_sx('button', 'Add to an appliance');
$actions[$action_prefix . 'remove'] = _sx('button', 'Remove from an appliance');
}
}
}

public static function showMassiveActionsSubForm(MassiveAction $ma)
{

Expand Down

0 comments on commit 3f74e92

Please sign in to comment.