Skip to content

Commit

Permalink
Remove warning for NULL breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Jun 27, 2012
1 parent d4fc00c commit 5788cd4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions R/scale-.r
Expand Up @@ -46,7 +46,6 @@ continuous_scale <- function(aesthetics, scale_name, palette, name = NULL, break
}

if (is.null(breaks) && !is_position_aes(aesthetics) && guide != "none") {
warning("NULL breaks for non-positional scale is invalid. Guide for this scale is suppressed.")
guide <- "none"
}

Expand Down Expand Up @@ -132,7 +131,6 @@ discrete_scale <- function(aesthetics, scale_name, palette, name = NULL, breaks
}

if (is.null(breaks) && !is_position_aes(aesthetics) && guide != "none") {
warning("NULL breaks for non-positional scale is invalid. Guide for this scale is suppressed.")
guide <- "none"
}

Expand Down

0 comments on commit 5788cd4

Please sign in to comment.