From 7bc03674f56bf1d4f850b0b1ab8d7d924a85e34a Mon Sep 17 00:00:00 2001 From: Marta Alcalde-Herraiz <91142894+martaalcalde@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:47:07 -0700 Subject: [PATCH] Remove dead code in `df_list_propagate_missing()` (#375) * remove redundant code * remove redundant n --- R/utils.R | 4 ---- 1 file changed, 4 deletions(-) diff --git a/R/utils.R b/R/utils.R index 6b17925e..a7908e2e 100644 --- a/R/utils.R +++ b/R/utils.R @@ -319,10 +319,6 @@ df_list_propagate_missing <- function(x, ..., size = NULL) { return(vec_unstructure(x)) } - n <- length(x) - out <- vector("list", length = n) - out <- set_names(out, names(x)) - # Propagate missings x <- vec_assign(x, incomplete, NA)