images/resize: remove commented-out code.

Accidentally snuck in as part of the giant CL
https://camlistore.org/r/1556

Change-Id: I379c613360c4f4c7ca9f3cc67a3b0a570308fa51
This commit is contained in:
Bill Thiede 2013-12-22 21:22:41 -08:00
parent 4a53f4d687
commit cdde1c8803
1 changed files with 0 additions and 2 deletions

View File

@ -355,8 +355,6 @@ func Resample(m image.Image, r image.Rectangle, w, h int) image.Image {
for x := 0; x < w; x++ { for x := 0; x < w; x++ {
xSrc := int(float64(r.Min.X) + float64(x)*xStep) xSrc := int(float64(r.Min.X) + float64(x)*xStep)
ySrc := int(float64(r.Min.Y) + float64(y)*yStep) ySrc := int(float64(r.Min.Y) + float64(y)*yStep)
//xSrc = r.Min.X + x*r.Dx()/w
//ySrc = r.Min.Y + y*r.Dy()/h
r, g, b, a := m.At(xSrc, ySrc).RGBA() r, g, b, a := m.At(xSrc, ySrc).RGBA()
img.SetRGBA(x, y, color.RGBA{ img.SetRGBA(x, y, color.RGBA{
R: uint8(r >> 8), R: uint8(r >> 8),