From 43da1790c88c25de5c3e2564ff08f7f4983314c2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 22 Aug 2021 21:47:53 +0200 Subject: [PATCH] Remove deprecation warning for `BaseButton.enabled_focus_mode` There were too many instances of false positives that are difficult to fix. The note in the class reference has been clarified instead. --- doc/classes/BaseButton.xml | 2 +- scene/gui/base_button.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/classes/BaseButton.xml b/doc/classes/BaseButton.xml index 9dc5d8cf8ff..1b1272b329c 100644 --- a/doc/classes/BaseButton.xml +++ b/doc/classes/BaseButton.xml @@ -55,7 +55,7 @@ If [code]true[/code], the button is in disabled state and can't be clicked or toggled. - [i]Deprecated.[/i] This property has been deprecated due to redundancy and no longer has any effect when set. Please use [member Control.focus_mode] instead. + [i]Deprecated.[/i] This property has been deprecated due to redundancy and will be removed in Godot 4.0. This property no longer has any effect when set. Please use [member Control.focus_mode] instead. diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index 107c39efcea..039baba5b3e 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -323,7 +323,6 @@ void BaseButton::set_enabled_focus_mode(FocusMode p_mode) { if (!status.disabled) { set_focus_mode(p_mode); } - WARN_DEPRECATED_MSG("BaseButton's Enabled Focus Mode property has been deprecated due to redundancy and will be removed in Godot 4.0. Please use Control.set_focus_mode instead."); } Control::FocusMode BaseButton::get_enabled_focus_mode() const {