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: add virtual destructor to LogText Created Nov. 18, 2015, 12:35 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/PluginSettings.cpp
===================================================================
--- a/src/plugin/PluginSettings.cpp
+++ b/src/plugin/PluginSettings.cpp
@@ -41,7 +41,7 @@
CPluginSettings* CPluginSettings::s_instance = NULL;
CComAutoCriticalSection CPluginSettings::s_criticalSectionLocal;
-CPluginSettings::CPluginSettings() : m_dwWorkingThreadId(0)
+CPluginSettings::CPluginSettings()
{
s_instance = NULL;
m_WindowsBuildNumber = 0;
@@ -85,11 +85,6 @@
return hasInstance;
}
-std::wstring GetDataPath(const std::wstring& filename)
-{
- return GetAppDataPath() + L"\\" + filename;
-}
-
bool CPluginSettings::IsPluginEnabled() const
{
return GetPluginEnabled();
@@ -108,25 +103,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();

Powered by Google App Engine
This is Rietveld