Only one extension was using getThumbnail
authorRuss Nelson <nelson@users.mediawiki.org>
Tue, 3 May 2011 19:55:49 +0000 (19:55 +0000)
committerRuss Nelson <nelson@users.mediawiki.org>
Tue, 3 May 2011 19:55:49 +0000 (19:55 +0000)
includes/filerepo/File.php
includes/filerepo/LocalFile.php

index c3d90ca..8c79939 100644 (file)
@@ -558,30 +558,6 @@ abstract class File {
                return $thumb->getUrl();
        }
 
-       /**
-        * As createThumb, but returns a ThumbnailImage object. This can
-        * provide access to the actual file, the real size of the thumb,
-        * and can produce a convenient \<img\> tag for you.
-        *
-        * For non-image formats, this may return a filetype-specific icon.
-        *
-        * @param $width Integer: maximum width of the generated thumbnail
-        * @param $height Integer: maximum height of the image (optional)
-        * @param $render Integer: Deprecated
-        *
-        * @return ThumbnailImage or null on failure
-        *
-        * @deprecated use transform()
-        */
-       public function getThumbnail( $width, $height=-1, $render = true ) {
-               wfDeprecated( __METHOD__ );
-               $params = array( 'width' => $width );
-               if ( $height != -1 ) {
-                       $params['height'] = $height;
-               }
-               return $this->transform( $params, 0 );
-       }
-
        /**
         * Transform a media file
         *
index a24b5c3..c32c128 100644 (file)
@@ -561,7 +561,6 @@ class LocalFile extends File {
        /** getUnscaledThumb inherited */
        /** thumbName inherited */
        /** createThumb inherited */
-       /** getThumbnail inherited */
        /** transform inherited */
 
        /**