Skip to content

Commit

Permalink
Remove unused create_filter_expr function
Browse files Browse the repository at this point in the history
This commit removes the unused helper function create_filter_expr from
probably/R/cal-estimate-utils.R. The function became obsolete after a
partial revert in tidymodels#135.

Fixes tidymodels#139
  • Loading branch information
jrwinget committed Aug 15, 2024
1 parent d7dc3f7 commit 5e1e700
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions R/cal-estimate-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,6 @@ split_dplyr_groups <- function(.data) {
res
}

create_filter_expr <- function(...) {
purrr::imap(..., ~ expr(!!parse_expr(.y) == !!.x)) %>%
purrr::reduce(function(x, y) expr(!!x & !!y))
}

stop_null_parameters <- function(x) {
if (!is.null(x)) {
rlang::abort("The `parameters` argument is only valid for `tune_results`.")
Expand Down

0 comments on commit 5e1e700

Please sign in to comment.