From: Mikael Nordfeldth Date: Mon, 28 Apr 2014 18:12:00 +0000 (+0200) Subject: InlineAttachmentList had unnecessary function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d72d0c86f2c5ec4bebffb4564d1cd1589ccd249;p=quix0rs-gnu-social.git InlineAttachmentList had unnecessary function --- diff --git a/lib/inlineattachmentlist.php b/lib/inlineattachmentlist.php index 0eeb9b264b..9fb746b5e8 100644 --- a/lib/inlineattachmentlist.php +++ b/lib/inlineattachmentlist.php @@ -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();