From: Tim Düsterhus Date: Wed, 17 Feb 2021 14:36:00 +0000 (+0100) Subject: Remove deprecated methods from IUserAvatar interface X-Git-Tag: 5.4.0_Alpha_1~255 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfed9165d7647740b787c5b7053e59d8b6285ca2;p=GitHub%2FWoltLab%2FWCF.git Remove deprecated methods from IUserAvatar interface --- diff --git a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php index bdd819ca14..d69b8c9fd0 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php @@ -105,7 +105,7 @@ SVG; } /** - * @inheritDoc + * @deprecated 3.0 */ public function canCrop() { @@ -113,7 +113,7 @@ SVG; } /** - * @inheritDoc + * @deprecated 3.0 */ public function getCropImageTag($size = null) { diff --git a/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php index 2cb2cd24a1..b9c34918b2 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php @@ -12,14 +12,6 @@ namespace wcf\data\user\avatar; */ interface IUserAvatar { - /** - * Returns true if this avatar can be cropped. - * - * @return bool - * @deprecated 3.0 - */ - public function canCrop(); - /** * Returns the url to this avatar. * @@ -36,15 +28,6 @@ interface IUserAvatar */ public function getImageTag($size = null); - /** - * Returns the image tag used for cropping. - * - * @param int $size - * @return string - * @deprecated 3.0 - */ - public function getCropImageTag($size = null); - /** * Returns the width of this avatar. * diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php index 225d724e16..0ff38f04dd 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php @@ -113,29 +113,29 @@ class UserAvatar extends DatabaseObject implements IUserAvatar /** * @inheritDoc */ - public function getCropImageTag($size = null) + public function getWidth() { - return ''; + return $this->width; } /** * @inheritDoc */ - public function getWidth() + public function getHeight() { - return $this->width; + return $this->height; } /** - * @inheritDoc + * @deprecated 3.0 */ - public function getHeight() + public function getCropImageTag($size = null) { - return $this->height; + return ''; } /** - * @inheritDoc + * @deprecated 3.0 */ public function canCrop() {