diff --git a/stepmania/src/Preference.cpp b/stepmania/src/Preference.cpp index f89c320b2b..36261616fb 100644 --- a/stepmania/src/Preference.cpp +++ b/stepmania/src/Preference.cpp @@ -73,20 +73,6 @@ void IPreference::SetFromStack( lua_State *L ) lua_pop( L, 1 ); } -#define READFROM_AND_WRITETO( type ) \ - template<> RString PrefToString( const type &v ) \ - { \ - return ::ToString( v ); \ - } \ - template<> void PrefFromString( const RString &s, type &v ) \ - { \ - ::FromString( s, v ); \ - } - -READFROM_AND_WRITETO( int ) -READFROM_AND_WRITETO( float ) -READFROM_AND_WRITETO( bool ) -READFROM_AND_WRITETO( RString ) void IPreference::ReadFrom( const XNode* pNode, bool bIsStatic ) { diff --git a/stepmania/src/Preference.h b/stepmania/src/Preference.h index 7749fe21a0..e89b448b6f 100644 --- a/stepmania/src/Preference.h +++ b/stepmania/src/Preference.h @@ -44,9 +44,6 @@ private: void BroadcastPreferenceChanged( const RString& sPreferenceName ); -template RString PrefToString( const BasicType &v ); -template void PrefFromString( const RString &s, BasicType &v ); - template class Preference : public IPreference {