Skip to content

Commit 9d65b27

Browse files
authored
[linux] remove unused get_primary_display() (#161)
This fixes the following build error: ``` window_manager_plugin.cc:527:26: error: unused function 'get_primary_display' [-Werror,-Wunused-function] ```
1 parent fd678fe commit 9d65b27

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

linux/window_manager_plugin.cc

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -524,23 +524,6 @@ static FlMethodResponse* start_resizing(WindowManagerPlugin* self,
524524
return FL_METHOD_RESPONSE(fl_method_success_response_new(result));
525525
}
526526

527-
static FlMethodResponse* get_primary_display(WindowManagerPlugin* self,
528-
FlValue* args) {
529-
GdkDisplay* display = gdk_display_get_default();
530-
GdkMonitor* monitor = gdk_display_get_primary_monitor(display);
531-
532-
GdkRectangle frame;
533-
gdk_monitor_get_geometry(monitor, &frame);
534-
535-
auto size = fl_value_new_map();
536-
fl_value_set_string_take(size, "width", fl_value_new_float(frame.width));
537-
fl_value_set_string_take(size, "height", fl_value_new_float(frame.height));
538-
539-
g_autoptr(FlValue) result = fl_value_new_map();
540-
fl_value_set_string_take(result, "size", size);
541-
return FL_METHOD_RESPONSE(fl_method_success_response_new(result));
542-
}
543-
544527
// Called when a method call is received from Flutter.
545528
static void window_manager_plugin_handle_method_call(
546529
WindowManagerPlugin* self,

0 commit comments

Comments
 (0)