recovery: clean up ask_to_continue_unverified
Change-Id: Ia7e0f5f150a7799efefd64e08a8f5dee35352317
diff --git a/install/fuse_sdcard_install.cpp b/install/fuse_sdcard_install.cpp
index 195652c..e7f4c0d 100644
--- a/install/fuse_sdcard_install.cpp
+++ b/install/fuse_sdcard_install.cpp
@@ -136,8 +136,7 @@
return run_fuse_sideload(std::move(file_data_reader)) == 0;
}
-int ApplyFromSdcard(Device* device, RecoveryUI* ui,
- const std::function<bool(Device*)>& ask_to_continue_unverified_fn) {
+int ApplyFromSdcard(Device* device, RecoveryUI* ui) {
if (ensure_path_mounted(SDCARD_ROOT) != 0) {
LOG(ERROR) << "\n-- Couldn't mount " << SDCARD_ROOT << ".\n";
return INSTALL_ERROR;
@@ -193,7 +192,7 @@
result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, false, false, 0 /*retry_count*/,
true /* verify */, ui);
- if (result == INSTALL_UNVERIFIED && ask_to_continue_unverified_fn(device)) {
+ if (result == INSTALL_UNVERIFIED && ask_to_continue_unverified(device)) {
result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, false, false, 0 /*retry_count*/,
false /* verify */, ui);
}