From 6d72d0c86f2c5ec4bebffb4564d1cd1589ccd249 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 28 Apr 2014 20:12:00 +0200 Subject: [PATCH] InlineAttachmentList had unnecessary function --- lib/inlineattachmentlist.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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(); -- 2.39.2