Skip to content

Commit

Permalink
delete dead code around deprecate_stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed May 23, 2024
1 parent ae5a8b4 commit ccc04a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/dummy.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ step_dummy <-
keep_original_cols = FALSE,
skip = FALSE,
id = rand_id("dummy")) {

if (lifecycle::is_present(preserve)) {
lifecycle::deprecate_stop(
"0.1.16",
"step_dummy(preserve = )",
"step_dummy(keep_original_cols = )"
)
keep_original_cols <- preserve
}

add_step(
Expand Down
3 changes: 1 addition & 2 deletions R/nzv.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ step_nzv <-
skip = FALSE,
id = rand_id("nzv")) {
exp_list <- list(freq_cut = 95 / 5, unique_cut = 10)

if (!isTRUE(all.equal(exp_list, options))) {
freq_cut <- options$freq_cut
unique_cut <- options$unique_cut
lifecycle::deprecate_stop(
"0.1.7",
"step_nzv(options)",
Expand Down
1 change: 0 additions & 1 deletion R/pls.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ step_pls <-
"step_pls(preserve = )",
"step_pls(keep_original_cols = )"
)
keep_original_cols <- preserve
}

recipes_pkg_check(required_pkgs.step_pls())
Expand Down

0 comments on commit ccc04a3

Please sign in to comment.