From 8cfa94abc3c690402422b6cf1af434e47aa98fd2 Mon Sep 17 00:00:00 2001 From: uvman Date: Mon, 25 Sep 2006 17:03:48 +0000 Subject: [PATCH] Remove code that was already marked as broken and commented out. --- libntfs/runlist.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libntfs/runlist.c b/libntfs/runlist.c index dd5fc043..a6203777 100644 --- a/libntfs/runlist.c +++ b/libntfs/runlist.c @@ -1581,7 +1581,6 @@ err_out: int ntfs_rl_truncate(runlist **arl, const VCN start_vcn) { runlist *rl; - BOOL is_end = FALSE; if (!arl || !*arl) { errno = EINVAL; @@ -1620,25 +1619,10 @@ int ntfs_rl_truncate(runlist **arl, const VCN start_vcn) */ if (rl->length) { ++rl; - if (!rl->length) - is_end = TRUE; rl->vcn = start_vcn; rl->length = 0; } rl->lcn = (LCN)LCN_ENOENT; - /** - * Reallocate memory if necessary. - * FIXME: Below code is broken, because runlist allocations must be - * a multiply of 4096. The code caused crashes and corruptions. - */ -/* - if (!is_end) { - size_t new_size = (rl - *arl + 1) * sizeof(runlist_element); - rl = realloc(*arl, new_size); - if (rl) - *arl = rl; - } -*/ return 0; }