summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-01-10 15:30:41 +0100
committerGitHub <noreply@github.com>2017-01-10 15:30:41 +0100
commit82ea31e42a5ab05ce252323890c3b49efcec9c93 (patch)
tree8d4850e5e566bbb9fe938a529981a925ca2be134
parentb7915b3ea2e4364d2338a1e130609974571d2100 (diff)
parent0fbf3b990d0dc36fb1dd914a9a92b57e351a8804 (diff)
Merge pull request #7490 from touilleMan/issue-7481
Remove deprecated Vector2.floorf method
-rw-r--r--core/variant_call.cpp5
-rw-r--r--doc/base/classes.xml7
2 files changed, 0 insertions, 12 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 5c9e8e9248..6aa37601a0 100644
--- a/core/variant_call.cpp
+++ b/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());
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index f84df42d54..47aeaa3427 100644
--- a/doc/base/classes.xml
+++ b/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>