Skip to content

Commit cc4142f

Browse files
committed
Remove CreateBlankF2fsImage
There are no callers. Bug: b/494364170
1 parent b7a0ab6 commit cc4142f

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@
4343
#include "cuttlefish/host/libs/image_aggregator/mbr.h"
4444
#include "cuttlefish/result/result.h"
4545

46-
// https://cs.android.com/android/platform/superproject/main/+/main:device/google/cuttlefish/Android.bp;l=127;drc=6f7d6a4db58efcc2ddd09eda07e009c6329414cd
47-
#define F2FS_BLOCKSIZE "4096"
48-
4946
namespace cuttlefish {
50-
5147
namespace {
5248

5349
const int FSCK_ERROR_CORRECTED = 1;
@@ -178,17 +174,6 @@ Result<void> CreateBlankExt4Image(std::string_view image, int num_mb) {
178174
return {};
179175
}
180176

181-
Result<void> CreateBlankF2fsImage(std::string_view image, int num_mb) {
182-
CF_EXPECT(CreateBlankEmptyImage(image, num_mb));
183-
const std::string make_f2fs_path = HostBinaryPath("make_f2fs");
184-
CF_EXPECT_EQ(
185-
Execute({make_f2fs_path, "-l", "data", std::string(image), "-C", "utf8",
186-
"-O", "compression,extra_attr,project_quota,casefold", "-g",
187-
"android", "-b", F2FS_BLOCKSIZE, "-w", F2FS_BLOCKSIZE}),
188-
0);
189-
return {};
190-
}
191-
192177
Result<void> CreateBlankSdcardImage(std::string_view image, int num_mb) {
193178
off_t image_size_bytes = static_cast<off_t>(num_mb) << 20;
194179
// Reserve 1MB in the image for the MBR and padding, to simulate what

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Result<void> CreateBlankEmptyImage(std::string_view image, int num_mb);
3131

3232
Result<void> CreateBlankExt4Image(std::string_view image, int num_mb);
3333

34-
Result<void> CreateBlankF2fsImage(std::string_view image, int num_mb);
35-
3634
Result<void> CreateBlankSdcardImage(std::string_view image, int num_mb);
3735

3836
} // namespace cuttlefish

0 commit comments

Comments
 (0)