Style: Remove redundant DEBUG_METHODS_ENABLED

• Replaced with functionally identical and far more ubiquitous `DEBUG_ENABLED`
This commit is contained in:
Thaddeus Crews 2025-05-15 13:09:41 -05:00
parent 5e27318b6c
commit d237e31a89
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
25 changed files with 328 additions and 337 deletions

View file

@ -232,18 +232,18 @@ void ProjectSettings::set_as_internal(const String &p_name, bool p_internal) {
void ProjectSettings::set_ignore_value_in_docs(const String &p_name, bool p_ignore) {
ERR_FAIL_COND_MSG(!props.has(p_name), vformat("Request for nonexistent project setting: '%s'.", p_name));
#ifdef DEBUG_METHODS_ENABLED
#ifdef DEBUG_ENABLED
props[p_name].ignore_value_in_docs = p_ignore;
#endif
#endif // DEBUG_ENABLED
}
bool ProjectSettings::get_ignore_value_in_docs(const String &p_name) const {
ERR_FAIL_COND_V_MSG(!props.has(p_name), false, vformat("Request for nonexistent project setting: '%s'.", p_name));
#ifdef DEBUG_METHODS_ENABLED
#ifdef DEBUG_ENABLED
return props[p_name].ignore_value_in_docs;
#else
return false;
#endif
#endif // DEBUG_ENABLED
}
void ProjectSettings::add_hidden_prefix(const String &p_prefix) {

View file

@ -74,9 +74,9 @@ protected:
Variant initial;
bool hide_from_editor = false;
bool restart_if_changed = false;
#ifdef DEBUG_METHODS_ENABLED
#ifdef DEBUG_ENABLED
bool ignore_value_in_docs = false;
#endif
#endif // DEBUG_ENABLED
VariantContainer() {}