From 54dcaa48a739dd261fd3d877c420f2d3db395b12 Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Wed, 31 Mar 2021 17:34:09 +0900 Subject: [PATCH] Fix typo and remove deprecated FlutterRotateWindow (#59) * Fix typo FlutterDestoryWindow * Remove FlutterRotateWindow --- shell/platform/tizen/flutter_tizen.cc | 7 +------ shell/platform/tizen/public/flutter_tizen.h | 5 +---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/shell/platform/tizen/flutter_tizen.cc b/shell/platform/tizen/flutter_tizen.cc index 5b16cfa9d8b43..c8408a94337b4 100644 --- a/shell/platform/tizen/flutter_tizen.cc +++ b/shell/platform/tizen/flutter_tizen.cc @@ -34,7 +34,7 @@ FlutterWindowControllerRef FlutterCreateWindow( return state.release(); } -void FlutterDestoryWindow(FlutterWindowControllerRef controller) { +void FlutterDestroyWindow(FlutterWindowControllerRef controller) { if (controller->engine) { controller->engine->StopEngine(); } @@ -164,11 +164,6 @@ void FlutterNotifyLowMemoryWarning(FlutterWindowControllerRef controller) { } } -void FlutterRotateWindow(FlutterWindowControllerRef controller, - int32_t degree) { - FT_LOGW("Deprecated API. Use SystemChrome.setPreferredOrientations instead."); -} - int64_t FlutterRegisterExternalTexture( FlutterTextureRegistrarRef texture_registrar) { FT_LOGD("FlutterDesktopRegisterExternalTexture"); diff --git a/shell/platform/tizen/public/flutter_tizen.h b/shell/platform/tizen/public/flutter_tizen.h index 7c09b327a6c0a..69236a5cacdfa 100644 --- a/shell/platform/tizen/public/flutter_tizen.h +++ b/shell/platform/tizen/public/flutter_tizen.h @@ -60,7 +60,7 @@ FLUTTER_EXPORT FlutterDesktopPluginRegistrarRef FlutterDesktopGetPluginRegistrar(FlutterWindowControllerRef controller, const char* plugin_name); -FLUTTER_EXPORT void FlutterDestoryWindow(FlutterWindowControllerRef controller); +FLUTTER_EXPORT void FlutterDestroyWindow(FlutterWindowControllerRef controller); FLUTTER_EXPORT bool FlutterRunsPrecompiledCode(); @@ -82,9 +82,6 @@ FLUTTER_EXPORT void FlutterNotifyAppIsPaused( FLUTTER_EXPORT void FlutterNotifyAppIsDetached( FlutterWindowControllerRef controller); -FLUTTER_EXPORT void FlutterRotateWindow(FlutterWindowControllerRef controller, - int32_t degree); - #if defined(__cplusplus) } // extern "C" #endif