Index: src/plugin/AdblockPlusTab.cpp |
=================================================================== |
--- a/src/plugin/AdblockPlusTab.cpp |
+++ b/src/plugin/AdblockPlusTab.cpp |
@@ -3,7 +3,6 @@ |
#include "PluginSettings.h" |
#include "PluginSystem.h" |
#include "PluginClass.h" |
-#include "PluginConfiguration.h" |
#include "PluginClientFactory.h" |
#include "AdblockPlusTab.h" |
@@ -21,27 +20,4 @@ |
void CPluginTab::OnNavigate(const CString& url) |
{ |
CPluginTabBase::OnNavigate(url); |
- |
- int r = url.Find(L".simple-adblock.com"); |
- if ((r > 0) && (r < 15)) |
- { |
- if (url.Find(L"?update") > 0) |
- { |
- CPluginConfiguration pluginConfig; |
- pluginConfig.Download(); |
- DWORD id; |
- HANDLE handle = ::CreateThread(NULL, 0, CPluginClass::MainThreadProc, (LPVOID)this, NULL, &id); |
- CPluginSettings* settings = CPluginSettings::GetInstance(); |
- |
- //Also register a mime filter if it's not registered yet |
- if (CPluginClass::s_mimeFilter == NULL) |
- { |
- CPluginClass::s_mimeFilter = CPluginClientFactory::GetMimeFilterClientInstance(); |
- } |
- |
- settings->Write(); |
- this->OnUpdateConfig(); |
- this->OnUpdateSettings(true); |
- } |
- } |
} |