[poppler] poppler/GfxState.cc poppler/GfxState.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 28 14:54:03 UTC 2019


 poppler/GfxState.cc |    8 +++-----
 poppler/GfxState.h  |    6 ++----
 2 files changed, 5 insertions(+), 9 deletions(-)

New commits:
commit 8c8e0a143e975b16e6c437c03dc2267e7e8ff3fc
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Mar 28 15:50:15 2019 +0100

    GfxICCBasedColorSpace: Remove unused member variable

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 3161e207..e3417e0f 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -1772,11 +1772,9 @@ void GfxLabColorSpace::getDefaultRanges(double *decodeLow, double *decodeRange,
 // GfxICCBasedColorSpace
 //------------------------------------------------------------------------
 
-GfxICCBasedColorSpace::GfxICCBasedColorSpace(int nCompsA, GfxColorSpace *altA,
-					     Ref *iccProfileStreamA) {
+GfxICCBasedColorSpace::GfxICCBasedColorSpace(int nCompsA, GfxColorSpace *altA) {
   nComps = nCompsA;
   alt = altA;
-  iccProfileStream = *iccProfileStreamA;
   rangeMin[0] = rangeMin[1] = rangeMin[2] = rangeMin[3] = 0;
   rangeMax[0] = rangeMax[1] = rangeMax[2] = rangeMax[3] = 1;
 #ifdef USE_CMS
@@ -1801,7 +1799,7 @@ GfxColorSpace *GfxICCBasedColorSpace::copy() {
   GfxICCBasedColorSpace *cs;
   int i;
 
-  cs = new GfxICCBasedColorSpace(nComps, alt->copy(), &iccProfileStream);
+  cs = new GfxICCBasedColorSpace(nComps, alt->copy());
   for (i = 0; i < 4; ++i) {
     cs->rangeMin[i] = rangeMin[i];
     cs->rangeMax[i] = rangeMax[i];
@@ -1902,7 +1900,7 @@ GfxColorSpace *GfxICCBasedColorSpace::parse(Array *arr, OutputDev *out, GfxState
       delete altA;
       return nullptr;
   }
-  cs = new GfxICCBasedColorSpace(nCompsA, altA, &iccProfileStreamA);
+  cs = new GfxICCBasedColorSpace(nCompsA, altA);
   obj2 = dict->lookup("Range");
   if (obj2.isArray() && obj2.arrayGetLength() == 2 * nCompsA) {
     Object obj4;
diff --git a/poppler/GfxState.h b/poppler/GfxState.h
index 3256857e..57bb26fa 100644
--- a/poppler/GfxState.h
+++ b/poppler/GfxState.h
@@ -17,7 +17,7 @@
 // Copyright (C) 2006, 2007 Jeff Muizelaar <jeff at infidigm.net>
 // Copyright (C) 2006 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2009 Koji Otani <sho at bbr.jp>
-// Copyright (C) 2009-2011, 2013, 2016-2018 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2009-2011, 2013, 2016-2019 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
 // Copyright (C) 2011 Andrea Canciani <ranma42 at gmail.com>
 // Copyright (C) 2011-2014, 2016 Thomas Freitag <Thomas.Freitag at alfa.de>
@@ -534,8 +534,7 @@ private:
 class GfxICCBasedColorSpace: public GfxColorSpace {
 public:
 
-  GfxICCBasedColorSpace(int nCompsA, GfxColorSpace *altA,
-			Ref *iccProfileStreamA);
+  GfxICCBasedColorSpace(int nCompsA, GfxColorSpace *altA);
   ~GfxICCBasedColorSpace();
   GfxColorSpace *copy() override;
   GfxColorSpaceMode getMode() override { return csICCBased; }
@@ -572,7 +571,6 @@ private:
   GfxColorSpace *alt;		// alternate color space
   double rangeMin[4];		// min values for each component
   double rangeMax[4];		// max values for each component
-  Ref iccProfileStream;		// the ICC profile
 #ifdef USE_CMS
   int getIntent() { return (transform != nullptr) ? transform->getIntent() : 0; }
   GfxColorTransform *transform;


More information about the poppler mailing list