From 5435ce20a935f4236ec8b2a31ebf6d7e690fe97e Mon Sep 17 00:00:00 2001 From: Andy Nowacki Date: Mon, 6 Mar 2017 10:25:21 +0000 Subject: [PATCH] Remove import of Base.scale(!); fixes #687 Base.scale and Base.scale! were deprecated in v0.5 and removed in v0.6-pre.alpha. Removing their import permits use on v0.6- and is fine since we REQUIRE v0.5 and above. --- src/components.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components.jl b/src/components.jl index bbb2f9c2..f660a149 100644 --- a/src/components.jl +++ b/src/components.jl @@ -174,7 +174,7 @@ function center(shape::Shape) Cx / 6A, Cy / 6A end -function Base.scale!(shape::Shape, x::Real, y::Real = x, c = center(shape)) +function scale!(shape::Shape, x::Real, y::Real = x, c = center(shape)) sx, sy = coords(shape) cx, cy = c for i=1:length(sx) @@ -184,7 +184,7 @@ function Base.scale!(shape::Shape, x::Real, y::Real = x, c = center(shape)) shape end -function Base.scale(shape::Shape, x::Real, y::Real = x, c = center(shape)) +function scale(shape::Shape, x::Real, y::Real = x, c = center(shape)) shapecopy = deepcopy(shape) scale!(shapecopy, x, y, c) end