mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 12:26:39 -05:00
removed some dead code
This commit is contained in:
parent
6b88c9a49e
commit
8a23d37870
6 changed files with 0 additions and 64 deletions
|
|
@ -44,15 +44,6 @@ GxsChannelGroupItem::GxsChannelGroupItem(FeedHolder *feedHolder, uint32_t feedId
|
|||
addEventHandler();
|
||||
}
|
||||
|
||||
//GxsChannelGroupItem::GxsChannelGroupItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsChannelGroup &group, bool isHome, bool autoUpdate) :
|
||||
// GxsGroupFeedItem(feedHolder, feedId, group.mMeta.mGroupId, isHome, rsGxsChannels, autoUpdate)
|
||||
//{
|
||||
// mIsLoading = false;
|
||||
// setup();
|
||||
// setGroup(group);
|
||||
// addEventHandler();
|
||||
//}
|
||||
|
||||
void GxsChannelGroupItem::addEventHandler()
|
||||
{
|
||||
mEventHandlerId = 0;
|
||||
|
|
|
|||
|
|
@ -197,19 +197,6 @@ void GxsChannelPostItem::setup()
|
|||
ui->expandFrame->hide();
|
||||
}
|
||||
|
||||
|
||||
QString GxsChannelPostItem::getTitleLabel()
|
||||
{
|
||||
return QString::fromUtf8(mPost.mMeta.mMsgName.c_str());
|
||||
}
|
||||
|
||||
QString GxsChannelPostItem::getMsgLabel()
|
||||
{
|
||||
//return RsHtml().formatText(NULL, QString::fromUtf8(mPost.mMsg.c_str()), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS);
|
||||
// Disabled, because emoticon replacement kills performance.
|
||||
return QString::fromUtf8(mPost.mMsg.c_str());
|
||||
}
|
||||
|
||||
QString GxsChannelPostItem::groupName()
|
||||
{
|
||||
return QString::fromUtf8(mGroupMeta.mGroupName.c_str());
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@ public:
|
|||
protected:
|
||||
//void setFileCleanUpWarning(uint32_t time_left);
|
||||
|
||||
QString getTitleLabel();
|
||||
QString getMsgLabel();
|
||||
const std::list<SubFileItem *> &getFileItems() {return mFileItems; }
|
||||
|
||||
bool isUnread() const ;
|
||||
|
|
|
|||
|
|
@ -57,34 +57,6 @@ GxsForumMsgItem::GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const
|
|||
setup();
|
||||
}
|
||||
|
||||
// GxsForumMsgItem::GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsForumGroup &group, const RsGxsForumMsg &post, bool isHome, bool autoUpdate) :
|
||||
// GxsFeedItem(feedHolder, feedId, post.mMeta.mGroupId, post.mMeta.mMsgId, isHome, rsGxsForums, autoUpdate)
|
||||
// {
|
||||
// #ifdef DEBUG_ITEM
|
||||
// std::cerr << "GxsForumMsgItem::GxsForumMsgItem() Direct Load";
|
||||
// std::cerr << std::endl;
|
||||
// #endif
|
||||
//
|
||||
// setup();
|
||||
//
|
||||
// setGroup(group, false);
|
||||
// setMessage(post);
|
||||
// }
|
||||
|
||||
// GxsForumMsgItem::GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsForumMsg &post, bool isHome, bool autoUpdate) :
|
||||
// GxsFeedItem(feedHolder, feedId, post.mMeta.mGroupId, post.mMeta.mMsgId, isHome, rsGxsForums, autoUpdate)
|
||||
// {
|
||||
// #ifdef DEBUG_ITEM
|
||||
// std::cerr << "GxsForumMsgItem::GxsForumMsgItem() Direct Load";
|
||||
// std::cerr << std::endl;
|
||||
// #endif
|
||||
//
|
||||
// setup();
|
||||
//
|
||||
// requestGroup();
|
||||
// setMessage(post);
|
||||
// }
|
||||
|
||||
void GxsForumMsgItem::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
/* This method employs a trick to trigger a deferred loading. The post and group is requested only
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ class GxsForumMsgItem : public GxsFeedItem
|
|||
public:
|
||||
GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsGroupId &groupId, const RsGxsMessageId &messageId, bool isHome, bool autoUpdate);
|
||||
|
||||
//GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsForumGroup &group, const RsGxsForumMsg &post, bool isHome, bool autoUpdate);
|
||||
//GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsForumMsg &post, bool isHome, bool autoUpdate);
|
||||
virtual ~GxsForumMsgItem();
|
||||
|
||||
uint64_t uniqueIdentifier() const override { return hash_64bits("GxsForumMsgItem " + messageId().toStdString()) ; }
|
||||
|
|
@ -52,7 +50,6 @@ protected:
|
|||
virtual QString groupName() override;
|
||||
virtual void loadGroup() override;
|
||||
virtual RetroShareLink::enumType getLinkType() override { return RetroShareLink::TYPE_FORUM; }
|
||||
//virtual bool isLoading();
|
||||
|
||||
/* GxsFeedItem */
|
||||
virtual QString messageName() override;
|
||||
|
|
|
|||
|
|
@ -41,15 +41,6 @@ PostedGroupItem::PostedGroupItem(FeedHolder *feedHolder, uint32_t feedId, const
|
|||
setup();
|
||||
}
|
||||
|
||||
//PostedGroupItem::PostedGroupItem(FeedHolder *feedHolder, uint32_t feedId, const RsPostedGroup &group, bool isHome, bool autoUpdate) :
|
||||
// GxsGroupFeedItem(feedHolder, feedId, group.mMeta.mGroupId, isHome, rsPosted, autoUpdate)
|
||||
//{
|
||||
// mIsLoadingGroup = false;
|
||||
// setup();
|
||||
//
|
||||
// setGroup(group);
|
||||
//}
|
||||
|
||||
void PostedGroupItem::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
/* This method employs a trick to trigger a deferred loading. The post and group is requested only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue