diff options
Diffstat (limited to 'protocols/CurrencyRates/src/ModuleInfo.cpp')
-rw-r--r-- | protocols/CurrencyRates/src/ModuleInfo.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/protocols/CurrencyRates/src/ModuleInfo.cpp b/protocols/CurrencyRates/src/ModuleInfo.cpp index 172f2ba884..e44985777a 100644 --- a/protocols/CurrencyRates/src/ModuleInfo.cpp +++ b/protocols/CurrencyRates/src/ModuleInfo.cpp @@ -1,7 +1,6 @@ #include "StdAfx.h" static CModuleInfo mi; -static CModuleInfo::THTMLEnginePtr g_pHTMLEngine; static mir_cs g_lmParsers; typedef std::map<std::string, MWindowList> THandles; @@ -28,37 +27,3 @@ void CModuleInfo::OnMirandaShutdown() for (auto &p : g_ahWindowLists) WindowList_Broadcast(p.second, WM_CLOSE, 0, 0); } - -CModuleInfo::THTMLEnginePtr CModuleInfo::GetHTMLEngine() -{ - if (!g_pHTMLEngine) { - mir_cslock lck(g_lmParsers); - if (!g_pHTMLEngine) - g_pHTMLEngine = THTMLEnginePtr(new CHTMLEngineMS); - } - - return g_pHTMLEngine; -} - -void CModuleInfo::SetHTMLEngine(THTMLEnginePtr pEngine) -{ - g_pHTMLEngine = pEngine; -} - -bool CModuleInfo::Verify() -{ - INITCOMMONCONTROLSEX icc = { 0 }; - icc.dwSize = sizeof(icc); - icc.dwICC = ICC_WIN95_CLASSES | ICC_LINK_CLASS; - if (FALSE == ::InitCommonControlsEx(&icc)) - return false; - - if (!g_pHTMLEngine && (false == CHTMLParserMS::IsInstalled())) { - CurrencyRates_MessageBox(nullptr, - TranslateT("Miranda could not load CurrencyRates plugin. Microsoft HTML parser is missing."), - MB_YESNO | MB_ICONQUESTION); - return false; - } - - return true; -} |