Skip to content

Commit 6e30ec2

Browse files
jennybcjimhester
authored andcommitted
Remove internal helper that's not used anywhere
1 parent 4069c0d commit 6e30ec2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

R/utils.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@ trim_ws <- function(x, which = c("both", "left", "right")) {
4848
mysub("[ \t\r\n]+$", mysub("^[ \t\r\n]+", x))
4949
}
5050

51-
# throws a warning if the argument is not the current directory.
52-
warn_unless_current_dir <- function(pkg, envir = parent.frame()) {
53-
if (pkg != ".") {
54-
warning("`pkg` is not `.`, which is now unsupported.\n Please use `usethis::proj_set()` to set the project directory.", immediate. = TRUE)
55-
usethis::local_project(pkg, quiet = TRUE, .local_envir = envir)
56-
}
57-
}
58-
5951
menu <- function(...) {
6052
utils::menu(...)
6153
}

0 commit comments

Comments
 (0)