From 788d090cd7617283b44973166b99557edf540795 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 23 Jan 2017 17:49:59 +0100 Subject: [PATCH] Remove unused protected method SpecialUserrights::splitGroups Change-Id: I7e06086aab6c939ec4c92887fd8d75ae7c09b860 --- includes/specials/SpecialUserrights.php | 23 ----------------------- 1 file changed, 23 deletions(-) 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. * -- 2.20.1