diff options
Diffstat (limited to 'lib/private/user.php')
-rw-r--r-- | lib/private/user.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/private/user.php b/lib/private/user.php index e84da5cf843..f806aa07251 100644 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -153,24 +153,6 @@ class OC_User { } /** - * delete a user - * - * @param string $uid The username of the user to delete - * @return bool - * - * Deletes a user - * @deprecated Use \OC::$server->getUserManager()->get() and then run delete() on the return - */ - public static function deleteUser($uid) { - $user = \OC::$server->getUserManager()->get($uid); - if ($user) { - return $user->delete(); - } else { - return false; - } - } - - /** * Try to login a user * * @param string $loginname The login name of the user to log in |