Remove redundant code.

This commit is contained in:
Martin Rotter 2017-09-26 13:00:34 +02:00
parent 44b46b8542
commit 0c4a69684c
2 changed files with 4 additions and 13 deletions

View File

@ -111,9 +111,6 @@ void InoreaderServiceRoot::start(bool freshly_activated) {
Q_UNUSED(freshly_activated)
loadFromDatabase();
//loadCacheFromFile(accountId());
m_network->oauth()->login();
}
@ -138,6 +135,8 @@ RootItem* InoreaderServiceRoot::obtainNewTreeForSyncIn() const {
return m_network->feedsCategories(true);
}
void InoreaderServiceRoot::addNewFeed(const QString& url) {}
void InoreaderServiceRoot::addNewFeed(const QString& url) {
Q_UNUSED(url)
}
void InoreaderServiceRoot::addNewCategory() {}

View File

@ -33,15 +33,7 @@
TtRssFeed::TtRssFeed(RootItem* parent)
: Feed(parent) {}
TtRssFeed::TtRssFeed(const QSqlRecord& record) : Feed(nullptr) {
setTitle(record.value(FDS_DB_TITLE_INDEX).toString());
setId(record.value(FDS_DB_ID_INDEX).toInt());
setIcon(qApp->icons()->fromByteArray(record.value(FDS_DB_ICON_INDEX).toByteArray()));
setAutoUpdateType(static_cast<Feed::AutoUpdateType>(record.value(FDS_DB_UPDATE_TYPE_INDEX).toInt()));
setAutoUpdateInitialInterval(record.value(FDS_DB_UPDATE_INTERVAL_INDEX).toInt());
setCustomId(record.value(FDS_DB_CUSTOM_ID_INDEX).toString());
qDebug("Custom ID of TT-RSS feed when loading from DB is '%s'.", qPrintable(record.value(FDS_DB_CUSTOM_ID_INDEX).toString()));
}
TtRssFeed::TtRssFeed(const QSqlRecord& record) : Feed(record) {}
TtRssFeed::~TtRssFeed() {}