From 61464326956f3e66b3aa3e18fb56046f14f10fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Mon, 7 Mar 2022 13:43:15 +0100 Subject: [PATCH] Drop drop default platform channel method: getPlatformVersion --- flutter/realm_flutter/linux/realm_plugin.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/flutter/realm_flutter/linux/realm_plugin.cpp b/flutter/realm_flutter/linux/realm_plugin.cpp index 2efb9062e2..650895a43b 100644 --- a/flutter/realm_flutter/linux/realm_plugin.cpp +++ b/flutter/realm_flutter/linux/realm_plugin.cpp @@ -24,15 +24,7 @@ static void realm_plugin_handle_method_call( const gchar* method = fl_method_call_get_name(method_call); - if (strcmp(method, "getPlatformVersion") == 0) { - struct utsname uname_data = {}; - uname(&uname_data); - g_autofree gchar *version = g_strdup_printf("Linux %s", uname_data.version); - g_autoptr(FlValue) result = fl_value_new_string(version); - response = FL_METHOD_RESPONSE(fl_method_success_response_new(result)); - } else { - response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new()); - } + response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new()); fl_method_call_respond(method_call, response, nullptr); }