Skip to content

Commit 4313b5e

Browse files
committed
handle layer.r
1 parent 34dee47 commit 4313b5e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

R/layer.r

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@ layer <- function(geom = NULL, stat = NULL,
8080
show.legend <- params$show_guide
8181
params$show_guide <- NULL
8282
}
83-
if (!is.logical(show.legend)) {
84-
# a charater vector have to be allowed for LayerSf$show.legend
85-
# in order to set its legend type.
86-
if (!inherits(layer_class, "LayerSf")) {
87-
warning("`show.legend` must be a logical vector.", call. = FALSE)
88-
show.legend <- FALSE
89-
}
90-
}
9183

9284
# we validate mapping before data because in geoms and stats
9385
# the mapping is listed before the data argument; this causes

0 commit comments

Comments
 (0)