Remove deprecated avatar-cropping related methods (#4310)
authorMatthias Schmidt <gravatronics@live.com>
Tue, 22 Jun 2021 14:39:23 +0000 (16:39 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Jun 2021 14:39:23 +0000 (16:39 +0200)
These methods are useless and have been deprecated for several years since 2772d4eb46511bc1cdc431bb80c184f8172dd500.

wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php
wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php

index cc4beb05ca4e8285973486ab3581ad821d0c8611..bdea9fa8e6e62a783a14c9780308da36d43c7fa6 100644 (file)
@@ -120,22 +120,6 @@ SVG;
         return $this->size;
     }
 
-    /**
-     * @deprecated  3.0
-     */
-    public function canCrop()
-    {
-        return false;
-    }
-
-    /**
-     * @deprecated  3.0
-     */
-    public function getCropImageTag($size = null)
-    {
-        return '';
-    }
-
     /**
      * Returns the perceived luminance of the given color.
      *
index 62cbe89e20e7065ae9c22caf23173faaeac64fa3..616c56e1b21d51c546630c79e9a1a8466f98f3cb 100644 (file)
@@ -141,20 +141,4 @@ class UserAvatar extends DatabaseObject implements IUserAvatar, ISafeFormatAvata
     {
         return $this->height;
     }
-
-    /**
-     * @deprecated  3.0
-     */
-    public function getCropImageTag($size = null)
-    {
-        return '';
-    }
-
-    /**
-     * @deprecated  3.0
-     */
-    public function canCrop()
-    {
-        return false;
-    }
 }