Skip to content

Commit 2ef59d1

Browse files
committed
fix(verify): remove unused verify_entry_callback function for Windows compatibility
1 parent 5579d1b commit 2ef59d1

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

src/cli/cmd_extract.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ static int extract_symlink(bfc_t* reader, const bfc_entry_t* entry, const char*
426426
strerror(errno));
427427
}
428428
#else
429-
(void) output_path;
430429
print_verbose("Warning: symlinks are not supported on Windows, skipping '%s'", entry->path);
431430
#endif
432431

src/cli/cmd_verify.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -110,29 +110,6 @@ static int verify_progress_callback(const bfc_entry_t* entry, void* user) {
110110
return 0;
111111
}
112112

113-
#ifdef _MSC_VER
114-
#pragma warning(suppress : 4505)
115-
static int verify_entry_callback(const bfc_entry_t* entry, void* user)
116-
#else
117-
static int verify_entry_callback(const bfc_entry_t* entry, void* user) __attribute__((unused));
118-
static int verify_entry_callback(const bfc_entry_t* entry, void* user)
119-
#endif
120-
{
121-
verify_progress_t* ctx = (verify_progress_t*) user;
122-
123-
ctx->verified_entries++;
124-
125-
if (ctx->show_progress) {
126-
if (S_ISREG(entry->mode)) {
127-
printf("Verifying (%d/%d): %s\n", ctx->verified_entries, ctx->total_entries, entry->path);
128-
} else {
129-
printf("Checking (%d/%d): %s\n", ctx->verified_entries, ctx->total_entries, entry->path);
130-
}
131-
}
132-
133-
return 0;
134-
}
135-
136113
int cmd_verify(int argc, char* argv[]) {
137114
verify_options_t opts;
138115
int result = parse_verify_options(argc, argv, &opts);

0 commit comments

Comments
 (0)