From e06964269e977a4a00a8b5071e1bd1329871c59d Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 6 Jun 2024 13:52:50 -0500 Subject: [PATCH] Removed defunct track_branches option in emubd --- bd/lfs_emubd.c | 4 ++-- bd/lfs_emubd.h | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bd/lfs_emubd.c b/bd/lfs_emubd.c index fe9a80e1..f14fb5a4 100644 --- a/bd/lfs_emubd.c +++ b/bd/lfs_emubd.c @@ -104,7 +104,7 @@ int lfs_emubd_createcfg(const struct lfs_config *cfg, const char *path, "%p {.erase_value=%"PRId32", .erase_cycles=%"PRIu32", " ".badblock_behavior=%"PRIu8", .power_cycles=%"PRIu32", " ".powerloss_behavior=%"PRIu8", .powerloss_cb=%p, " - ".powerloss_data=%p, .track_branches=%d})", + ".powerloss_data=%p})", (void*)cfg, cfg->context, (void*)(uintptr_t)cfg->read, (void*)(uintptr_t)cfg->prog, (void*)(uintptr_t)cfg->erase, (void*)(uintptr_t)cfg->sync, @@ -112,7 +112,7 @@ int lfs_emubd_createcfg(const struct lfs_config *cfg, const char *path, path, (void*)bdcfg, bdcfg->erase_value, bdcfg->erase_cycles, bdcfg->badblock_behavior, bdcfg->power_cycles, bdcfg->powerloss_behavior, (void*)(uintptr_t)bdcfg->powerloss_cb, - bdcfg->powerloss_data, bdcfg->track_branches); + bdcfg->powerloss_data); lfs_emubd_t *bd = cfg->context; bd->cfg = bdcfg; diff --git a/bd/lfs_emubd.h b/bd/lfs_emubd.h index b76b78b2..06b892c2 100644 --- a/bd/lfs_emubd.h +++ b/bd/lfs_emubd.h @@ -94,10 +94,6 @@ struct lfs_emubd_config { // Data for power-loss callback void *powerloss_data; - // True to track when power-loss could have occured. Note this involves - // heavy memory usage! - bool track_branches; - // Path to file to use as a mirror of the disk. This provides a way to view // the current state of the block device. const char *disk_path;