remove unused
This commit is contained in:
@@ -488,28 +488,6 @@ LUA_REGISTER_CLASS( PrefsManager )
|
|||||||
|
|
||||||
#include "LuaFunctions.h"
|
#include "LuaFunctions.h"
|
||||||
|
|
||||||
|
|
||||||
int LuaFunc_GetPreference( lua_State *L )
|
|
||||||
{
|
|
||||||
REQ_ARGS( "GetPreference", 1 );
|
|
||||||
REQ_ARG( "GetPreference", 1, string );
|
|
||||||
|
|
||||||
CString sName;
|
|
||||||
LuaHelpers::PopStack( sName, NULL );
|
|
||||||
|
|
||||||
IPreference *pPref = PREFSMAN->GetPreferenceByName( sName );
|
|
||||||
if( pPref == NULL )
|
|
||||||
{
|
|
||||||
LOG->Warn( "GetPreference: unknown preference \"%s\"", sName.c_str() );
|
|
||||||
lua_pushnil( L );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
pPref->PushValue( L );
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
LuaFunction( GetPreference ); /* register it */
|
|
||||||
|
|
||||||
LuaFunction_NoArgs( EventMode, PREFSMAN->m_bEventMode )
|
LuaFunction_NoArgs( EventMode, PREFSMAN->m_bEventMode )
|
||||||
LuaFunction_NoArgs( ShowCaution, PREFSMAN->m_bShowCaution )
|
LuaFunction_NoArgs( ShowCaution, PREFSMAN->m_bShowCaution )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user