mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-30 09:04:52 +01:00
Remove redundant code.
This commit is contained in:
parent
44b46b8542
commit
0c4a69684c
@ -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() {}
|
||||
|
@ -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() {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user