From b5ed0e3d6d26d948c28563f41100b5c6a6ad258d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 6 Feb 2016 17:46:05 +0900 Subject: [PATCH] image: Remove image.DrawRect (#142) --- image.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/image.go b/image.go index 3dfbf6775..758d00eb0 100644 --- a/image.go +++ b/image.go @@ -111,11 +111,6 @@ func (i *Image) DrawLines(lines Lines) (err error) { return } -// DrawRect draws a rectangle. -func (i *Image) DrawRect(x, y, width, height int, clr color.Color) error { - return i.DrawLines(&rectsAsLines{&rect{x, y, width, height, clr}}) -} - // DrawFilledRects draws filled rectangles on the image. func (i *Image) DrawFilledRects(rects Rects) (err error) { i.pixels = nil