Skip to content

Commit b6190d6

Browse files
committed
just treat old elements as any other misspelled element
1 parent c55da50 commit b6190d6

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

R/theme.R

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -469,27 +469,6 @@ theme <- function(...,
469469
validate = TRUE) {
470470
elements <- find_args(..., complete = NULL, validate = NULL)
471471

472-
if (!is.null(elements$axis.ticks.margin)) {
473-
lifecycle::deprecate_stop(
474-
"2.0.0", "theme(axis.ticks.margin)",
475-
details = "Please set `margin` property of `axis.text` instead"
476-
)
477-
}
478-
if (!is.null(elements$panel.margin)) {
479-
lifecycle::deprecate_stop(
480-
"2.2.0", "theme(panel.margin)", "theme(panel.spacing)"
481-
)
482-
}
483-
if (!is.null(elements$panel.margin.x)) {
484-
lifecycle::deprecate_stop(
485-
"2.2.0", "theme(panel.margin.x)", "theme(panel.spacing.x)"
486-
)
487-
}
488-
if (!is.null(elements$panel.margin.y)) {
489-
lifecycle::deprecate_stop(
490-
"2.2.0", "theme(panel.margin.y)", "theme(panel.spacing.y)"
491-
)
492-
}
493472
if (is.unit(elements$legend.margin) && !is.margin(elements$legend.margin)) {
494473
cli::cli_warn(c(
495474
"{.var legend.margin} must be specified using {.fn margin}",

0 commit comments

Comments
 (0)