From 5d5ed5e321ae0cabe8ee142ed31061b7340d4a79 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Wed, 18 Mar 2020 13:41:41 -0700 Subject: [PATCH] Remove unused PackagesUri rpc param in OnServiceProtocolRunInView (flutter/engine#17195) This is not actually used by hot reload since we've switched to compilation from kernel. --- engine/src/flutter/shell/common/shell.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/engine/src/flutter/shell/common/shell.cc b/engine/src/flutter/shell/common/shell.cc index b115cb1bf6..8dc5cbed29 100644 --- a/engine/src/flutter/shell/common/shell.cc +++ b/engine/src/flutter/shell/common/shell.cc @@ -1267,16 +1267,6 @@ bool Shell::OnServiceProtocolRunInView( return false; } - // TODO(chinmaygarde): In case of hot-reload from .dill files, the packages - // file is ignored. Currently, the tool is passing a junk packages file to - // pass this check. Update the service protocol interface and remove this - // workaround. - if (params.count("packagesFile") == 0) { - ServiceProtocolParameterError(response, - "'packagesFile' parameter is missing."); - return false; - } - if (params.count("assetDirectory") == 0) { ServiceProtocolParameterError(response, "'assetDirectory' parameter is missing."); @@ -1285,8 +1275,6 @@ bool Shell::OnServiceProtocolRunInView( std::string main_script_path = fml::paths::FromURI(params.at("mainScript").data()); - std::string packages_path = - fml::paths::FromURI(params.at("packagesFile").data()); std::string asset_directory_path = fml::paths::FromURI(params.at("assetDirectory").data());