From: Bartosz DziewoƄski Date: Mon, 23 Jan 2017 16:49:59 +0000 (+0100) Subject: Remove unused protected method SpecialUserrights::splitGroups X-Git-Tag: 1.31.0-rc.0~4235^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_modifier.php?a=commitdiff_plain;h=788d090cd7617283b44973166b99557edf540795;p=lhc%2Fweb%2Fwiklou.git Remove unused protected method SpecialUserrights::splitGroups Change-Id: I7e06086aab6c939ec4c92887fd8d75ae7c09b860 --- diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 98cdc09f1a..b1f8a178cf 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -471,29 +471,6 @@ class UserrightsPage extends SpecialPage { ); } - /** - * Go through used and available groups and return the ones that this - * form will be able to manipulate based on the current user's system - * permissions. - * - * @param array $groups List of groups the given user is in - * @return array Tuple of addable, then removable groups - */ - protected function splitGroups( $groups ) { - list( $addable, $removable, $addself, $removeself ) = array_values( $this->changeableGroups() ); - - $removable = array_intersect( - array_merge( $this->isself ? $removeself : [], $removable ), - $groups - ); // Can't remove groups the user doesn't have - $addable = array_diff( - array_merge( $this->isself ? $addself : [], $addable ), - $groups - ); // Can't add groups the user does have - - return [ $addable, $removable ]; - } - /** * Show the form to edit group memberships. *