Skip to content

Commit 00dd12c

Browse files
committed
remove redundant call to plot_theme()
1 parent 03b8204 commit 00dd12c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/plot-build.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ ggplot_build.ggplot <- function(plot) {
106106
# Train and map non-position scales and guides
107107
npscales <- scales$non_position_scales()
108108
if (npscales$n() > 0) {
109-
#TODO: if #5854 gets merged, we shouldn't need `plot_theme()` here
110-
npscales$set_palettes(plot_theme(plot))
109+
npscales$set_palettes(plot$theme)
111110
lapply(data, npscales$train_df)
112111
plot$guides <- plot$guides$build(npscales, plot$layers, plot$labels, data, plot$theme)
113112
data <- lapply(data, npscales$map_df)

0 commit comments

Comments
 (0)