Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginSystem.cpp

Issue 5096167658487808: [IE] Dead code (Closed)
Patch Set: Created June 20, 2014, 9:26 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginSystem.cpp
===================================================================
--- a/src/plugin/PluginSystem.cpp
+++ b/src/plugin/PluginSystem.cpp
@@ -94,44 +94,3 @@
return lang;
}
-
-
-CString CPluginSystem::GetBrowserVersion() const
-{
- CString browserVersion;
-
- HKEY hKey;
- DWORD res;
-
- // Open the handler
- if ((res = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Internet Explorer", 0, KEY_QUERY_VALUE, &hKey)) == ERROR_SUCCESS)
- {
- TCHAR buf[255];
- DWORD dwBufSize = sizeof(buf);
- DWORD dwType = REG_SZ;
-
- // Do the processing, find the version
- if ((res = ::RegQueryValueEx(hKey, L"Version", 0, &dwType, (BYTE*)buf, &dwBufSize)) == ERROR_SUCCESS)
- {
- browserVersion = buf;
- int pos = 0;
- if ((pos = browserVersion.Find('.')) >= 0)
- {
- browserVersion = browserVersion.Left(pos);
- }
- }
- else
- {
- DEBUG_ERROR_LOG(res, PLUGIN_ERROR_OS_VERSION, PLUGIN_ERROR_OS_VERSION_REG_QUERY_VALUE, L"Client::GetBrowserVer - Failed reg query value");
- }
-
- // Close the handler
- ::RegCloseKey(hKey);
- }
- else
- {
- DEBUG_ERROR_LOG(res, PLUGIN_ERROR_OS_VERSION, PLUGIN_ERROR_OS_VERSION_REG_OPEN_KEY, L"Client::GetBrowserVer - Failed reg open");
- }
-
- return browserVersion;
-}

Powered by Google App Engine
This is Rietveld