From ce77dd52ecd932b57bc5f0c0ecb4a8653c219168 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 3 Jan 2023 14:22:20 +0100 Subject: [PATCH] [linux] clean up unused includes (#260) * [linux] clean up unused includes - cairo is unused since #250 - utsname and cstring are leftovers from the flutter plugin template * [linux] change the last remaining strcmp() to g_strcmp0() While one PR was changing strcmp()'s to g_strcmp0(), this piece of code was added in another PR. Use the same method here as well, just for the sake of aesthetics and consistency. --- linux/window_manager_plugin.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/linux/window_manager_plugin.cc b/linux/window_manager_plugin.cc index b2bd198..f18d8f0 100644 --- a/linux/window_manager_plugin.cc +++ b/linux/window_manager_plugin.cc @@ -2,10 +2,6 @@ #include #include -#include - -#include -#include #define WINDOW_MANAGER_PLUGIN(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), window_manager_plugin_get_type(), \ @@ -847,7 +843,7 @@ static void window_manager_plugin_handle_method_call( response = grab_keyboard(self); } else if (g_strcmp0(method, "ungrabKeyboard") == 0) { response = ungrab_keyboard(self); - } else if (strcmp(method, "setBrightness") == 0) { + } else if (g_strcmp0(method, "setBrightness") == 0) { response = set_brightness(self, args); } else { response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new());