]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
InlineAttachmentList had unnecessary function
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Apr 2014 18:12:00 +0000 (20:12 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Apr 2014 18:18:04 +0000 (20:18 +0200)
lib/inlineattachmentlist.php

index 0eeb9b264b3d024277e20de4eccbfa7d5a361863..9fb746b5e89f7279f1db0d5e6f7973f6bbc7f827 100644 (file)
@@ -50,7 +50,7 @@ class InlineAttachmentList extends AttachmentList
      *
      * @return ListItem a list item for displaying the attachment
      */
-    function newListItem($attachment)
+    function newListItem(File $attachment)
     {
         return new InlineAttachmentListItem($attachment, $this->out);
     }
@@ -58,18 +58,6 @@ class InlineAttachmentList extends AttachmentList
 
 class InlineAttachmentListItem extends AttachmentListItem
 {
-    protected $thumb;
-
-    function show()
-    {
-        try {
-            $this->thumb = $this->attachment->getThumbnail();
-            parent::show();
-        } catch (UnsupportedMediaException $e) {
-            $this->thumb = null;
-        }
-    }
-
     function showLink() {
         $this->out->elementStart('a', $this->linkAttr());
         $this->showRepresentation();