remove unused

This commit is contained in:
Glenn Maynard
2005-05-28 08:05:44 +00:00
parent b87dae1cc2
commit 7eebaef042
-22
View File
@@ -488,28 +488,6 @@ LUA_REGISTER_CLASS( PrefsManager )
#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( ShowCaution, PREFSMAN->m_bShowCaution )