Skip to content

Commit

Permalink
removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Rodrigues committed Jul 1, 2024
1 parent b876211 commit ad53dcc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/nix_hash.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ nix_sri_hash <- function(path) {
#' Return the SRI hash of a CRAN package source using `nix hash path --sri path`
#' @param repo_url URL to CRAN package source
hash_cran <- function(repo_url) {
path_to_repo <- paste0(
tempdir(), "repo",
paste0(sample(letters, 5), collapse = "")
)

# list contains `sri_hash` and `deps` elements
list_sri_hash_deps <- hash_url(url = repo_url)
Expand All @@ -137,10 +133,6 @@ hash_cran <- function(repo_url) {
#' @param repo_url URL to GitHub repository
#' @param commit Commit hash
hash_git <- function(repo_url, commit) {
path_to_repo <- paste0(
tempdir(), "repo",
paste0(sample(letters, 5), collapse = "")
)

trailing_slash <- grepl("/$", repo_url)
if (isTRUE(trailing_slash)) {
Expand Down

0 comments on commit ad53dcc

Please sign in to comment.