Skip to content

Commit c5bcecc

Browse files
committed
chore: Remove dead code
1 parent 7fb9f96 commit c5bcecc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

R/games.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,6 @@ pa <- function(...) constructor_spec(sample_pa, ...)
10201020
#' plot(sample_gnp(6, 0.5))
10211021
sample_gnp <- function(n, p, directed = FALSE, loops = FALSE) {
10221022
type <- "gnp"
1023-
type1 <- switch(type, "gnp" = 0, "gnm" = 1)
10241023

10251024
res <- erdos_renyi_game_gnp_impl(
10261025
n = n,
@@ -1071,7 +1070,6 @@ gnp <- function(...) constructor_spec(sample_gnp, ...)
10711070
#' degree_distribution(g)
10721071
sample_gnm <- function(n, m, directed = FALSE, loops = FALSE) {
10731072
type <- "gnm"
1074-
type1 <- switch(type, "gnp" = 0, "gnm" = 1)
10751073

10761074
res <- erdos_renyi_game_gnm_impl(
10771075
n = n,

0 commit comments

Comments
 (0)