Skip to content

Commit 8b37ed8

Browse files
BurntimeXdtdesign
authored andcommitted
Remove obsolete code
1 parent 3ebe344 commit 8b37ed8

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

files/lib/data/conversation/ConversationAction.class.php

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
use wcf\data\conversation\label\ConversationLabel;
77
use wcf\data\conversation\message\ConversationMessageAction;
88
use wcf\data\conversation\message\ConversationMessageList;
9-
use wcf\data\conversation\message\SimplifiedViewableConversationMessageList;
109
use wcf\data\IClipboardAction;
11-
use wcf\data\IPopoverAction;
1210
use wcf\data\IVisitableObjectAction;
1311
use wcf\data\user\group\UserGroup;
1412
use wcf\page\ConversationPage;
@@ -41,7 +39,6 @@
4139
*/
4240
class ConversationAction extends AbstractDatabaseObjectAction implements
4341
IClipboardAction,
44-
IPopoverAction,
4542
IVisitableObjectAction
4643
{
4744
/**
@@ -469,56 +466,6 @@ public function getLabelManagement()
469466
];
470467
}
471468

472-
/**
473-
* @inheritDoc
474-
*/
475-
public function validateGetPopover()
476-
{
477-
$this->conversation = $this->getSingleObject();
478-
if (!Conversation::isParticipant([$this->conversation->conversationID])) {
479-
throw new PermissionDeniedException();
480-
}
481-
}
482-
483-
/**
484-
* @inheritDoc
485-
*/
486-
public function getPopover()
487-
{
488-
$messageList = new SimplifiedViewableConversationMessageList();
489-
$messageList->getConditionBuilder()
490-
->add("conversation_message.messageID = ?", [$this->conversation->firstMessageID]);
491-
$messageList->readObjects();
492-
493-
return [
494-
'template' => WCF::getTPL()->fetch('conversationMessagePreview', 'wcf', [
495-
'message' => $messageList->getSingleObject(),
496-
]),
497-
];
498-
}
499-
500-
/**
501-
* Validates the get message preview action.
502-
*
503-
* @throws PermissionDeniedException
504-
* @deprecated 5.3 Use `validateGetPopover()` instead.
505-
*/
506-
public function validateGetMessagePreview()
507-
{
508-
$this->validateGetPopover();
509-
}
510-
511-
/**
512-
* Returns a preview of a message in a specific conversation.
513-
*
514-
* @return string[]
515-
* @deprecated 5.3 Use `getPopover()` instead.
516-
*/
517-
public function getMessagePreview()
518-
{
519-
return $this->getPopover();
520-
}
521-
522469
/**
523470
* Validates parameters to close conversations.
524471
*

templates/conversationMessagePreview.tpl

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)