forked from mirrors/0ad
Delete lots of obsolete unused script-interface code.
Delete unused code from various other places. This was SVN commit r7839.
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include "lib/sysdep/sysdep.h" // isfinite
|
||||
#include <math.h>
|
||||
#include <cfloat>
|
||||
#include "scripting/ScriptableComplex.inl"
|
||||
|
||||
// CVector3D
|
||||
|
||||
@@ -48,19 +47,6 @@ template<> jsval ToJSVal<CVector3D>( const CVector3D& Native )
|
||||
return( OBJECT_TO_JSVAL( Script ) );
|
||||
}
|
||||
|
||||
// CScriptObject
|
||||
|
||||
template<> jsval ToJSVal<CScriptObject>( CScriptObject& Native )
|
||||
{
|
||||
return( OBJECT_TO_JSVAL( Native.GetFunctionObject() ) );
|
||||
}
|
||||
|
||||
template<> bool ToPrimitive<CScriptObject>( JSContext* UNUSED(cx), jsval v, CScriptObject& Storage )
|
||||
{
|
||||
Storage.SetJSVal( v );
|
||||
return( true );
|
||||
}
|
||||
|
||||
// int
|
||||
|
||||
template<> jsval ToJSVal<int>( const int& Native )
|
||||
|
||||
Reference in New Issue
Block a user