From 7f1b14c50aa46ac5e48099e43ac9121f7b790275 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 27 Nov 2018 20:06:09 +0100 Subject: [PATCH] Remove unused Image16::tofloat() --- rtengine/image16.cc | 14 -------------- rtengine/image16.h | 1 - 2 files changed, 15 deletions(-) diff --git a/rtengine/image16.cc b/rtengine/image16.cc index 618d31641..c0e97557a 100644 --- a/rtengine/image16.cc +++ b/rtengine/image16.cc @@ -310,20 +310,6 @@ Image8* Image16::to8() const return img8; } -Imagefloat* Image16::tofloat() const -{ - Imagefloat* imgfloat = new Imagefloat(width, height); - - for (int h = 0; h < height; ++h) { - for (int w = 0; w < width; ++w) { - imgfloat->r(h, w) = r(h, w); - imgfloat->g(h, w) = g(h, w); - imgfloat->b(h, w) = b(h, w); - } - } - - return imgfloat; -} // Parallelized transformation; create transform with cmsFLAGS_NOCACHE! void Image16::ExecCMSTransform(cmsHTRANSFORM hTransform) { diff --git a/rtengine/image16.h b/rtengine/image16.h index 9f73c322b..9762af990 100644 --- a/rtengine/image16.h +++ b/rtengine/image16.h @@ -43,7 +43,6 @@ public: Image16* copy() const; Image8* to8() const; - Imagefloat* tofloat() const; void getStdImage(const ColorTemp &ctemp, int tran, Imagefloat* image, PreviewProps pp) const override;