Skip to content

Commit

Permalink
remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Feb 20, 2025
1 parent 1de0c36 commit 7f36deb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
if: runner.os == 'Windows'
run: |
rcmdcheck::rcmdcheck(
args = c("--no-manual", "--ignore-vignettes", "--as-cran", if (.Platform$OS.type == "windows" && getRversion() >= "4.2.0") "--no-multiarch"),
args = c("--no-manual", "--as-cran", if (.Platform$OS.type == "windows" && getRversion() >= "4.2.0") "--no-multiarch"),
check_dir = "check"
)
shell: Rscript {0}
Expand Down
12 changes: 0 additions & 12 deletions R/backend_api-MulticoreFuture-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -298,20 +298,8 @@ result.MulticoreFuture <- function(future, ...) {
launchFuture.MulticoreFutureBackend <- function(backend, future, ...) {
debug <- isTRUE(getOption("future.debug"))

if (future[["state"]] != "created") {
label <- future[["label"]]
if (is.null(label)) label <- "<none>"
stop(FutureError(sprintf("A future ('%s') can only be launched once", label), future = future))
}

## Assert that the process that created the future is
## also the one that evaluates/resolves/queries it.
assertOwner(future)

mcparallel <- importParallel("mcparallel")

future <- coerceFuture(backend, future)

data <- getFutureData(future, debug = debug)

t_start <- Sys.time()
Expand Down

0 comments on commit 7f36deb

Please sign in to comment.