mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -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();
|
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()
|
void GxsChannelGroupItem::addEventHandler()
|
||||||
{
|
{
|
||||||
mEventHandlerId = 0;
|
mEventHandlerId = 0;
|
||||||
|
|
|
||||||
|
|
@ -197,19 +197,6 @@ void GxsChannelPostItem::setup()
|
||||||
ui->expandFrame->hide();
|
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()
|
QString GxsChannelPostItem::groupName()
|
||||||
{
|
{
|
||||||
return QString::fromUtf8(mGroupMeta.mGroupName.c_str());
|
return QString::fromUtf8(mGroupMeta.mGroupName.c_str());
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,6 @@ public:
|
||||||
protected:
|
protected:
|
||||||
//void setFileCleanUpWarning(uint32_t time_left);
|
//void setFileCleanUpWarning(uint32_t time_left);
|
||||||
|
|
||||||
QString getTitleLabel();
|
|
||||||
QString getMsgLabel();
|
|
||||||
const std::list<SubFileItem *> &getFileItems() {return mFileItems; }
|
const std::list<SubFileItem *> &getFileItems() {return mFileItems; }
|
||||||
|
|
||||||
bool isUnread() const ;
|
bool isUnread() const ;
|
||||||
|
|
|
||||||
|
|
@ -57,34 +57,6 @@ GxsForumMsgItem::GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const
|
||||||
setup();
|
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)
|
void GxsForumMsgItem::paintEvent(QPaintEvent *e)
|
||||||
{
|
{
|
||||||
/* This method employs a trick to trigger a deferred loading. The post and group is requested only
|
/* 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:
|
public:
|
||||||
GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsGroupId &groupId, const RsGxsMessageId &messageId, bool isHome, bool autoUpdate);
|
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();
|
virtual ~GxsForumMsgItem();
|
||||||
|
|
||||||
uint64_t uniqueIdentifier() const override { return hash_64bits("GxsForumMsgItem " + messageId().toStdString()) ; }
|
uint64_t uniqueIdentifier() const override { return hash_64bits("GxsForumMsgItem " + messageId().toStdString()) ; }
|
||||||
|
|
@ -52,7 +50,6 @@ protected:
|
||||||
virtual QString groupName() override;
|
virtual QString groupName() override;
|
||||||
virtual void loadGroup() override;
|
virtual void loadGroup() override;
|
||||||
virtual RetroShareLink::enumType getLinkType() override { return RetroShareLink::TYPE_FORUM; }
|
virtual RetroShareLink::enumType getLinkType() override { return RetroShareLink::TYPE_FORUM; }
|
||||||
//virtual bool isLoading();
|
|
||||||
|
|
||||||
/* GxsFeedItem */
|
/* GxsFeedItem */
|
||||||
virtual QString messageName() override;
|
virtual QString messageName() override;
|
||||||
|
|
|
||||||
|
|
@ -41,15 +41,6 @@ PostedGroupItem::PostedGroupItem(FeedHolder *feedHolder, uint32_t feedId, const
|
||||||
setup();
|
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)
|
void PostedGroupItem::paintEvent(QPaintEvent *e)
|
||||||
{
|
{
|
||||||
/* This method employs a trick to trigger a deferred loading. The post and group is requested only
|
/* 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