Skip to content

Commit

Permalink
Remove deprecated methods from FlutterViewController (flutter#21081)
Browse files Browse the repository at this point in the history
The template now uses the FlutterEngine versions.
  • Loading branch information
stuartmorgan committed Sep 11, 2020
1 parent 83cc923 commit 4eb069f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,4 @@ std::optional<LRESULT> FlutterViewController::HandleTopLevelWindowProc(
return handled ? result : std::optional<LRESULT>(std::nullopt);
}

std::chrono::nanoseconds FlutterViewController::ProcessMessages() {
return engine_->ProcessMessages();
}

FlutterDesktopPluginRegistrarRef FlutterViewController::GetRegistrarForPlugin(
const std::string& plugin_name) {
return engine_->GetRegistrarForPlugin(plugin_name);
}

} // namespace flutter
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace flutter {
// This is the primary wrapper class for the desktop C API.
// If you use this class, you should not call any of the setup or teardown
// methods in the C API directly, as this class will do that internally.
class FlutterViewController : public PluginRegistry {
class FlutterViewController {
public:
// Creates a FlutterView that can be parented into a Windows View hierarchy
// either using HWNDs or in the future into a CoreWindow, or using compositor.
Expand Down Expand Up @@ -56,13 +56,6 @@ class FlutterViewController : public PluginRegistry {
WPARAM wparam,
LPARAM lparam);

// DEPRECATED. Call engine()->ProcessMessages() instead.
std::chrono::nanoseconds ProcessMessages();

// DEPRECATED. Call engine()->GetRegistrarForPlugin() instead.
FlutterDesktopPluginRegistrarRef GetRegistrarForPlugin(
const std::string& plugin_name) override;

private:
// Handle for interacting with the C API's view controller, if any.
FlutterDesktopViewControllerRef controller_ = nullptr;
Expand Down

0 comments on commit 4eb069f

Please sign in to comment.