Skip to content

Commit 6984393

Browse files
committed
removes unused function/code
1 parent 9aec646 commit 6984393

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

R/ZZZ.R

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ sanitize_input_name <- function(.x) {
1616
stringr::str_remove_all("[^a-z0-9-]+")
1717
}
1818

19-
# suppress vs code / languageserver "no visible binding" warnings
20-
if (FALSE) {
21-
.data <- NULL
22-
.env <- NULL
23-
}
24-
2519
md_file_to_html <- function(...) {
2620
file <- app_sys(...)
2721

@@ -72,20 +66,6 @@ is_local <- function() {
7266
Sys.getenv("SHINY_PORT") == "" || !getOption("golem.app.prod", TRUE)
7367
}
7468

75-
encrypt_filename <- function(
76-
filename,
77-
key_b64 = Sys.getenv("NHP_ENCRYPT_KEY")
78-
) {
79-
key <- openssl::base64_decode(key_b64)
80-
81-
f <- charToRaw(filename)
82-
83-
ct <- openssl::aes_cbc_encrypt(f, key, NULL)
84-
hm <- as.raw(openssl::sha256(ct, key))
85-
86-
openssl::base64_encode(c(hm, ct))
87-
}
88-
8969
download_params_schema <- function(
9070
data_path = "app_data",
9171
app_version = Sys.getenv("INPUTS_DATA_VERSION", "dev")

0 commit comments

Comments
 (0)