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.
This commit is contained in:
Andy Nowacki 2017-03-06 10:25:21 +00:00
parent 124f1fe701
commit 5435ce20a9

View File

@ -174,7 +174,7 @@ function center(shape::Shape)
Cx / 6A, Cy / 6A Cx / 6A, Cy / 6A
end 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) sx, sy = coords(shape)
cx, cy = c cx, cy = c
for i=1:length(sx) for i=1:length(sx)
@ -184,7 +184,7 @@ function Base.scale!(shape::Shape, x::Real, y::Real = x, c = center(shape))
shape shape
end 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) shapecopy = deepcopy(shape)
scale!(shapecopy, x, y, c) scale!(shapecopy, x, y, c)
end end