summaryrefslogtreecommitdiff
path: root/src/adblock/adblockmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/adblock/adblockmanager.cpp')
-rw-r--r--src/adblock/adblockmanager.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp
index 5078f215..e48cc753 100644
--- a/src/adblock/adblockmanager.cpp
+++ b/src/adblock/adblockmanager.cpp
@@ -64,7 +64,7 @@ AdBlockManager::~AdBlockManager()
}
-void AdBlockManager::loadSettings(bool checkUpdateDate)
+void AdBlockManager::loadSettings()
{
_index = 0;
_buffer.clear();
@@ -98,7 +98,7 @@ void AdBlockManager::loadSettings(bool checkUpdateDate)
QDateTime lastUpdate = ReKonfig::lastUpdate(); // the day of the implementation.. :)
int days = ReKonfig::updateInterval();
- if (!checkUpdateDate || today > lastUpdate.addDays(days))
+ if (today > lastUpdate.addDays(days))
{
ReKonfig::setLastUpdate(today);
@@ -346,24 +346,6 @@ void AdBlockManager::saveRules(const QStringList &rules)
}
-void AdBlockManager::addSubscription(const QString &title, const QString &location)
-{
- QStringList titles = ReKonfig::subscriptionTitles();
- if (titles.contains(title))
- return;
-
- QStringList locations = ReKonfig::subscriptionLocations();
- if (locations.contains(location))
- return;
-
- titles << title;
- locations << location;
-
- ReKonfig::setSubscriptionTitles(titles);
- ReKonfig::setSubscriptionLocations(locations);
-}
-
-
void AdBlockManager::showSettings()
{
QPointer<KDialog> dialog = new KDialog();