Updating FlashTask to require img-name

Test: tested flash {partition} on pixel
Bug: 194686221
Change-Id: I8018e48f68606ec9c559d06973154d79e7c0634a
diff --git a/fastboot/task.cpp b/fastboot/task.cpp
index 44008e5..29befb7 100644
--- a/fastboot/task.cpp
+++ b/fastboot/task.cpp
@@ -20,11 +20,6 @@
 #include "super_flash_helper.h"
 
 using namespace std::string_literals;
-
-FlashTask::FlashTask(const std::string& slot, const std::string& pname, const bool apply_vbmeta)
-    : pname_(pname), fname_(find_item(pname)), slot_(slot), apply_vbmeta_(apply_vbmeta) {
-    if (fname_.empty()) die("cannot determine image filename for '%s'", pname_.c_str());
-}
 FlashTask::FlashTask(const std::string& _slot, const std::string& _pname, const std::string& _fname,
                      const bool apply_vbmeta)
     : pname_(_pname), fname_(_fname), slot_(_slot), apply_vbmeta_(apply_vbmeta) {}
diff --git a/fastboot/task.h b/fastboot/task.h
index 264e43f..8aa4d2f 100644
--- a/fastboot/task.h
+++ b/fastboot/task.h
@@ -32,7 +32,6 @@
 
 class FlashTask : public Task {
   public:
-    FlashTask(const std::string& slot, const std::string& pname, const bool apply_vbmeta);
     FlashTask(const std::string& slot, const std::string& pname, const std::string& fname,
               const bool apply_vbmeta);