Skip to content

Commit 8d3dc2f

Browse files
committed
Remove CreateBlankImage
There are no remaining callers. Bug: b/494364170
1 parent 98505eb commit 8d3dc2f

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

base/cvd/cuttlefish/host/libs/config/data_image.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -214,25 +214,6 @@ Result<void> CreateBlankSdcardImage(std::string_view image, int num_mb) {
214214
return {};
215215
}
216216

217-
Result<void> CreateBlankImage(const std::string& image, int num_mb,
218-
const std::string& image_fmt) {
219-
VLOG(0) << "Creating " << image;
220-
221-
if (image_fmt == "sdcard") {
222-
CF_EXPECT(CreateBlankSdcardImage(image, num_mb));
223-
} else if (image_fmt == "ext4") {
224-
CF_EXPECT(CreateBlankExt4Image(image, num_mb));
225-
} else if (image_fmt == "f2fs") {
226-
CF_EXPECT(CreateBlankF2fsImage(image, num_mb));
227-
}
228-
if (image_fmt != "none") {
229-
LOG(WARNING) << "Unknown image format '" << image_fmt
230-
<< "' for " << image << ", treating as 'none'.";
231-
}
232-
CF_EXPECT(CreateBlankEmptyImage(image, num_mb));
233-
return {};
234-
}
235-
236217
Result<void> InitializeDataImage(
237218
const CuttlefishConfig::InstanceSpecific& instance) {
238219
auto action = CF_EXPECT(ChooseDataImageAction(instance));

base/cvd/cuttlefish/host/libs/config/data_image.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
#pragma once
1717

18-
#include <string>
1918
#include <string_view>
2019

2120
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
@@ -36,7 +35,4 @@ Result<void> CreateBlankF2fsImage(std::string_view image, int num_mb);
3635

3736
Result<void> CreateBlankSdcardImage(std::string_view image, int num_mb);
3837

39-
Result<void> CreateBlankImage(const std::string& image, int num_mb,
40-
const std::string& image_fmt);
41-
4238
} // namespace cuttlefish

0 commit comments

Comments
 (0)