unused
This commit is contained in:
@@ -503,30 +503,6 @@ float PrefsManager::GetSoundVolume()
|
||||
return clamp(m_fSoundVolume.Get(),0.0f,1.0f);
|
||||
}
|
||||
|
||||
bool PrefsManager::MessageIsIgnored( const CString &ID )
|
||||
{
|
||||
vector<CString> list;
|
||||
split( PREFSMAN->m_sIgnoredMessageWindows, ",", list );
|
||||
for( unsigned i = 0; i < list.size(); ++i )
|
||||
if( !ID.CompareNoCase(list[i]) )
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void PrefsManager::IgnoreMessage( const CString &ID )
|
||||
{
|
||||
if( ID == "" )
|
||||
|
||||
if( MessageIsIgnored(ID) )
|
||||
return;
|
||||
|
||||
vector<CString> list;
|
||||
split( PREFSMAN->m_sIgnoredMessageWindows, ",", list );
|
||||
list.push_back( ID );
|
||||
PREFSMAN->m_sIgnoredMessageWindows.Set( join(",",list) );
|
||||
PREFSMAN->SavePrefsToDisk();
|
||||
}
|
||||
|
||||
// lua start
|
||||
#include "LuaBinding.h"
|
||||
|
||||
|
||||
@@ -261,9 +261,6 @@ public:
|
||||
|
||||
CString GetPreferencesSection() const;
|
||||
|
||||
bool MessageIsIgnored( const CString &ID );
|
||||
void IgnoreMessage( const CString &ID );
|
||||
|
||||
// Lua
|
||||
void PushSelf( lua_State *L );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user