From 11f3514275347c821f791ad4c0da2559c07f7d6a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 20 Feb 2005 02:56:51 +0000 Subject: [PATCH] simplify --- stepmania/src/Preference.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/stepmania/src/Preference.cpp b/stepmania/src/Preference.cpp index 80501dead3..7dc30a470c 100644 --- a/stepmania/src/Preference.cpp +++ b/stepmania/src/Preference.cpp @@ -32,21 +32,6 @@ void IPreference::PushValue( lua_State *L ) const lua_pushnil( L ); } -void Preference::PushValue( lua_State *L ) const -{ - LuaManager::PushStack( m_currentValue, L ); -} - -void Preference::FromString( const CString &s ) -{ - m_currentValue = s; -} - -CString Preference::ToString() const -{ - return m_currentValue; -} - #define READFROM_AND_WRITETO( type ) \ void Preference::FromString( const CString &s ) \ { \ @@ -64,6 +49,7 @@ CString Preference::ToString() const READFROM_AND_WRITETO( int ) READFROM_AND_WRITETO( float ) READFROM_AND_WRITETO( bool ) +READFROM_AND_WRITETO( CString ) void IPreference::ReadFrom( const IniFile &ini ) {