Commit 4af7bf07 authored by Morris Jobke's avatar Morris Jobke
Browse files

OC_Helper::userAvatarSet is not used anymore

parent a18c0983
...@@ -164,16 +164,6 @@ class OC_Helper { ...@@ -164,16 +164,6 @@ class OC_Helper {
return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]); return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]);
} }
/**
* shows whether the user has an avatar
* @param string $user username
* @return bool avatar set or not
* @deprecated 9.0.0 Use \OC::$server->getAvatarManager()->getAvatar($user)->exists();
**/
public static function userAvatarSet($user) {
return \OC::$server->getAvatarManager()->getAvatar($user)->exists();
}
/** /**
* Make a human file size * Make a human file size
* @param int $bytes file size in bytes * @param int $bytes file size in bytes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment