Merge pull request #8919 from nextcloud/remove-deprecated-method-of-ocp-user
Remove deprecated and unused method OCP\User::getDisplayNames
This commit is contained in:
commit
24292be917
|
@ -82,20 +82,6 @@ class User {
|
|||
return \OC_User::getDisplayName( $user );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of all display names and user ids.
|
||||
* @param string $search search pattern
|
||||
* @param int|null $limit
|
||||
* @param int|null $offset
|
||||
* @return array an array of all display names (value) and the correspondig uids (key)
|
||||
* @deprecated 8.1.0 use method searchDisplayName() of \OCP\IUserManager - \OC::$server->getUserManager()
|
||||
* @since 5.0.0
|
||||
* @suppress PhanDeprecatedFunction
|
||||
*/
|
||||
public static function getDisplayNames( $search = '', $limit = null, $offset = null ) {
|
||||
return \OC_User::getDisplayNames( $search, $limit, $offset );
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the user is logged in
|
||||
* @return boolean
|
||||
|
|
Loading…
Reference in New Issue