remove unused
This commit is contained in:
@@ -73,20 +73,6 @@ void IPreference::SetFromStack( lua_State *L )
|
|||||||
|
|
||||||
lua_pop( L, 1 );
|
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 )
|
void IPreference::ReadFrom( const XNode* pNode, bool bIsStatic )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,9 +44,6 @@ private:
|
|||||||
|
|
||||||
void BroadcastPreferenceChanged( const RString& sPreferenceName );
|
void BroadcastPreferenceChanged( const RString& sPreferenceName );
|
||||||
|
|
||||||
template <class BasicType> RString PrefToString( const BasicType &v );
|
|
||||||
template <class BasicType> void PrefFromString( const RString &s, BasicType &v );
|
|
||||||
|
|
||||||
template <class T, class BasicType=T>
|
template <class T, class BasicType=T>
|
||||||
class Preference : public IPreference
|
class Preference : public IPreference
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user