Browse Source

Remove deprecated Vector2.floorf method

Emmanuel Leblond 8 years ago
parent
commit
0fbf3b990d
2 changed files with 0 additions and 12 deletions
  1. 0 5
      core/variant_call.cpp
  2. 0 7
      doc/base/classes.xml

+ 0 - 5
core/variant_call.cpp

@@ -423,10 +423,6 @@ static void _call_##m_type##_##m_method(Variant& r_ret,Variant& p_self,const Var
 			r_ret=Variant();
 	}
 
-	static void _call_Vector2_floorf(Variant& r_ret,Variant& p_self,const Variant** p_args) {
-		r_ret = reinterpret_cast<Vector2*>(p_self._data._mem)->floor();
-	};
-
 	VCALL_LOCALMEM0R(Quat,length);
 	VCALL_LOCALMEM0R(Quat,length_squared);
 	VCALL_LOCALMEM0R(Quat,normalized);
@@ -1458,7 +1454,6 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
 	ADDFUNC1(VECTOR2,VECTOR2,Vector2,rotated,REAL,"phi",varray());
 	ADDFUNC0(VECTOR2,VECTOR2,Vector2,tangent,varray());
 	ADDFUNC0(VECTOR2,VECTOR2,Vector2,floor,varray());
-	ADDFUNC0(VECTOR2,VECTOR2,Vector2,floorf,varray());
 	ADDFUNC1(VECTOR2,VECTOR2,Vector2,snapped,VECTOR2,"by",varray());
 	ADDFUNC0(VECTOR2,REAL,Vector2,get_aspect,varray());
 	ADDFUNC1(VECTOR2,REAL,Vector2,dot,VECTOR2,"with",varray());

+ 0 - 7
doc/base/classes.xml

@@ -44978,13 +44978,6 @@ do_property].
 				Remove the fractional part of x and y.
 			</description>
 		</method>
-		<method name="floorf">
-			<return type="Vector2">
-			</return>
-			<description>
-				Remove the fractional part of x and y.
-			</description>
-		</method>
 		<method name="get_aspect">
 			<return type="float">
 			</return>