]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/inlineattachmentlist.php
InlineAttachmentList had unnecessary function
[quix0rs-gnu-social.git] / lib / inlineattachmentlist.php
index a0243c825f673cffcfbf5398555ace1321540a8f..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,22 +58,6 @@ class InlineAttachmentList extends AttachmentList
 
 class InlineAttachmentListItem extends AttachmentListItem
 {
-    protected $thumb;
-
-    function show()
-    {
-        $this->thumb = parent::getThumbInfo();
-        if (!empty($this->thumb)) {
-            parent::show();
-        }
-
-    }
-
-    function getThumbInfo()
-    {
-        return $this->thumb;
-    }
-
     function showLink() {
         $this->out->elementStart('a', $this->linkAttr());
         $this->showRepresentation();