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