Skip to content

Commit

Permalink
Remove unused OS _display_driver_id member
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Jan 3, 2025
1 parent efae48a commit b34adf2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions core/os/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ class OS {
bool restart_on_exit = false;
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_method;
bool _is_gles_over_gl = false;
Expand Down Expand Up @@ -119,8 +116,6 @@ class OS {
virtual void initialize() = 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 delete_main_loop() = 0;

Expand All @@ -144,8 +139,6 @@ class OS {
String get_current_rendering_method() const { return _current_rendering_method; }
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 bool get_user_prefers_integrated_gpu() const { return false; }

Expand Down
4 changes: 0 additions & 4 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 position = init_custom_pos;
if (init_use_custom_pos) {
Expand Down

0 comments on commit b34adf2

Please sign in to comment.