diff options
author | letheed <letheed@outlook.com> | 2017-11-10 09:03:15 +0100 |
---|---|---|
committer | letheed <letheed@outlook.com> | 2017-11-10 09:09:30 +0100 |
commit | ab2647a0d0c2efc4735017ba46eb11a85daf8738 (patch) | |
tree | 792835a1a3ea8bcf1cdfff1c6c94ad5ef7e26478 /scene/main/canvas_layer.cpp | |
parent | 2e89dd19b1f1dfe5de1ff8cdeb21539efc2b3f09 (diff) | |
download | redot-engine-ab2647a0d0c2efc4735017ba46eb11a85daf8738.tar.gz |
Remove deprecated rotation methods
Diffstat (limited to 'scene/main/canvas_layer.cpp')
-rw-r--r-- | scene/main/canvas_layer.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scene/main/canvas_layer.cpp b/scene/main/canvas_layer.cpp index ce8714e574..f626c567a9 100644 --- a/scene/main/canvas_layer.cpp +++ b/scene/main/canvas_layer.cpp @@ -115,20 +115,6 @@ real_t CanvasLayer::get_rotationd() const { return Math::rad2deg(get_rotation()); } -// Kept for compatibility after rename to {s,g}et_rotationd. -// Could be removed after a couple releases. -void CanvasLayer::_set_rotationd(real_t p_degrees) { - - WARN_PRINT("Deprecated method CanvasLayer._set_rotationd(): This method was renamed to set_rotationd. Please adapt your code accordingly, as the old method will be obsoleted."); - set_rotationd(p_degrees); -} - -real_t CanvasLayer::_get_rotationd() const { - - WARN_PRINT("Deprecated method CanvasLayer._get_rotationd(): This method was renamed to get_rotationd. Please adapt your code accordingly, as the old method will be obsoleted."); - return get_rotationd(); -} - void CanvasLayer::set_scale(const Vector2 &p_scale) { if (locrotscale_dirty) @@ -255,10 +241,6 @@ void CanvasLayer::_bind_methods() { ClassDB::bind_method(D_METHOD("set_rotationd", "degrees"), &CanvasLayer::set_rotationd); ClassDB::bind_method(D_METHOD("get_rotationd"), &CanvasLayer::get_rotationd); - // TODO: Obsolete those two methods (old name) properly (GH-4397) - ClassDB::bind_method(D_METHOD("_set_rotationd", "degrees"), &CanvasLayer::_set_rotationd); - ClassDB::bind_method(D_METHOD("_get_rotationd"), &CanvasLayer::_get_rotationd); - ClassDB::bind_method(D_METHOD("set_scale", "scale"), &CanvasLayer::set_scale); ClassDB::bind_method(D_METHOD("get_scale"), &CanvasLayer::get_scale); |