From 18a535033a6b0b584b7fb1bb6a21a7c980207aa4 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Thu, 7 Nov 2013 21:15:19 -0500 Subject: Removed unnecessary code from image cataloging loop. --- fpdf.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fpdf.go b/fpdf.go index c5100ee..e8fbc38 100644 --- a/fpdf.go +++ b/fpdf.go @@ -2651,11 +2651,8 @@ func (f *Fpdf) putfonts() { } func (f *Fpdf) putimages() { - for fileStr, img := range f.images { + for _, img := range f.images { f.putimage(img) - img.data = img.data[0:0] - img.smask = img.smask[0:0] - f.images[fileStr] = img } } -- cgit v1.2.1-24-ge1ad