Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Remove non-const overload of `ScriptDebugger::get_break_language`

HolonProduction6f63d58d53fe
diff --git a/core/debugger/script_debugger.cpp b/core/debugger/script_debugger.cpp
index 777cfe700ac..91a36070d00 100644
--- a/core/debugger/script_debugger.cpp
+++ b/core/debugger/script_debugger.cpp
@@ -101,7 +101,3 @@ void ScriptDebugger::send_error(const String &p_func, const String &p_file, int
Vector<ScriptLanguage::StackInfo> ScriptDebugger::get_error_stack_info() const {
return error_stack_info;
}
-
-ScriptLanguage *ScriptDebugger::get_break_language() const {
- return break_lang;
-}
diff --git a/core/debugger/script_debugger.h b/core/debugger/script_debugger.h
index 6f2d052f3fe..64272e60758 100644
--- a/core/debugger/script_debugger.h
+++ b/core/debugger/script_debugger.h
@@ -61,7 +61,7 @@ public:
String breakpoint_find_source(const String &p_source) const;
void set_break_language(ScriptLanguage *p_lang) { break_lang = p_lang; }
- ScriptLanguage *get_break_language() { return break_lang; }
+ ScriptLanguage *get_break_language() const { return break_lang; }
void set_skip_breakpoints(bool p_skip_breakpoints);
bool is_skipping_breakpoints();
void set_ignore_error_breaks(bool p_ignore);
@@ -78,7 +78,6 @@ public:
const HashMap<int, HashSet<StringName>> &get_breakpoints() const { return breakpoints; }
void debug(ScriptLanguage *p_lang, bool p_can_continue = true, bool p_is_error_breakpoint = false);
- ScriptLanguage *get_break_language() const;
void send_error(const String &p_func, const String &p_file, int p_line, const String &p_err, const String &p_descr, bool p_editor_notify, ErrorHandlerType p_type, const Vector<StackInfo> &p_stack_info);
Vector<StackInfo> get_error_stack_info() const;