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

Unified Diff: src/plugin/PluginSettings.cpp

Issue 5187613258416128: Issue #1234 - Rewrite internals of debug facility (Closed)
Patch Set: small fixes from comment #7 Created May 19, 2015, 3:13 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
« no previous file with comments | « src/plugin/PluginSettings.h ('k') | src/plugin/PluginStdAfx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginSettings.cpp
===================================================================
--- a/src/plugin/PluginSettings.cpp
+++ b/src/plugin/PluginSettings.cpp
@@ -58,7 +58,7 @@
CPluginSettings* CPluginSettings::s_instance = NULL;
CComAutoCriticalSection CPluginSettings::s_criticalSectionLocal;
-CPluginSettings::CPluginSettings() : m_dwWorkingThreadId(0)
+CPluginSettings::CPluginSettings()
{
s_instance = NULL;
m_WindowsBuildNumber = 0;
@@ -102,11 +102,6 @@
return hasInstance;
}
-std::wstring GetDataPath(const std::wstring& filename)
-{
- return GetAppDataPath() + L"\\" + filename;
-}
-
bool CPluginSettings::IsPluginEnabled() const
{
return GetPluginEnabled();
@@ -125,25 +120,6 @@
return filterList;
}
-bool CPluginSettings::IsWorkingThread(DWORD dwThreadId) const
-{
- if (dwThreadId == 0)
- {
- dwThreadId = ::GetCurrentThreadId();
- }
- return m_dwWorkingThreadId == dwThreadId;
-}
-
-void CPluginSettings::SetWorkingThreadId()
-{
- m_dwWorkingThreadId = ::GetCurrentThreadId();
-}
-
-void CPluginSettings::SetWorkingThreadId(DWORD id)
-{
- m_dwWorkingThreadId = id;
-}
-
void CPluginSettings::TogglePluginEnabled()
{
CPluginClient::GetInstance()->TogglePluginEnabled();
« no previous file with comments | « src/plugin/PluginSettings.h ('k') | src/plugin/PluginStdAfx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld