Remove unused protected method SpecialUserrights::splitGroups
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 23 Jan 2017 16:49:59 +0000 (17:49 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 23 Jan 2017 16:49:59 +0000 (17:49 +0100)
Change-Id: I7e06086aab6c939ec4c92887fd8d75ae7c09b860

includes/specials/SpecialUserrights.php

index 98cdc09..b1f8a17 100644 (file)
@@ -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.
         *