Remove unused OS _display_driver_id member

This commit is contained in:
Rémi Verschelde 2024-11-11 14:49:29 +01:00
parent efae48a209
commit b34adf29dc
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 0 additions and 11 deletions

View file

@ -69,9 +69,6 @@ class OS {
bool restart_on_exit = false; bool restart_on_exit = false;
List<String> restart_commandline; List<String> restart_commandline;
// for the user interface we keep a record of the current display driver
// so we can retrieve the rendering drivers available
int _display_driver_id = -1;
String _current_rendering_driver_name; String _current_rendering_driver_name;
String _current_rendering_method; String _current_rendering_method;
bool _is_gles_over_gl = false; bool _is_gles_over_gl = false;
@ -119,8 +116,6 @@ protected:
virtual void initialize() = 0; virtual void initialize() = 0;
virtual void initialize_joypads() = 0; virtual void initialize_joypads() = 0;
void set_display_driver_id(int p_display_driver_id) { _display_driver_id = p_display_driver_id; }
virtual void set_main_loop(MainLoop *p_main_loop) = 0; virtual void set_main_loop(MainLoop *p_main_loop) = 0;
virtual void delete_main_loop() = 0; virtual void delete_main_loop() = 0;
@ -144,8 +139,6 @@ public:
String get_current_rendering_method() const { return _current_rendering_method; } String get_current_rendering_method() const { return _current_rendering_method; }
bool get_gles_over_gl() const { return _is_gles_over_gl; } bool get_gles_over_gl() const { return _is_gles_over_gl; }
int get_display_driver_id() const { return _display_driver_id; }
virtual Vector<String> get_video_adapter_driver_info() const = 0; virtual Vector<String> get_video_adapter_driver_info() const = 0;
virtual bool get_user_prefers_integrated_gpu() const { return false; } virtual bool get_user_prefers_integrated_gpu() const { return false; }

View file

@ -2973,10 +2973,6 @@ Error Main::setup2(bool p_show_boot_logo) {
} }
} }
// Store this in a globally accessible place, so we can retrieve the rendering drivers
// list from the display driver for the editor UI.
OS::get_singleton()->set_display_driver_id(display_driver_idx);
Vector2i *window_position = nullptr; Vector2i *window_position = nullptr;
Vector2i position = init_custom_pos; Vector2i position = init_custom_pos;
if (init_use_custom_pos) { if (init_use_custom_pos) {