Skip to content

Commit

Permalink
Fix typo and remove deprecated FlutterRotateWindow (flutter-tizen#59)
Browse files Browse the repository at this point in the history
* Fix typo FlutterDestoryWindow

* Remove FlutterRotateWindow
  • Loading branch information
swift-kim committed Sep 27, 2021
1 parent bbab29d commit 54dcaa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
7 changes: 1 addition & 6 deletions shell/platform/tizen/flutter_tizen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ FlutterWindowControllerRef FlutterCreateWindow(
return state.release();
}

void FlutterDestoryWindow(FlutterWindowControllerRef controller) {
void FlutterDestroyWindow(FlutterWindowControllerRef controller) {
if (controller->engine) {
controller->engine->StopEngine();
}
Expand Down Expand Up @@ -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");
Expand Down
5 changes: 1 addition & 4 deletions shell/platform/tizen/public/flutter_tizen.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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
Expand Down

0 comments on commit 54dcaa4

Please sign in to comment.