[poppler] poppler/SplashOutputDev.cc poppler/SplashOutputDev.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 17 16:51:27 UTC 2020


 poppler/SplashOutputDev.cc |    7 +------
 poppler/SplashOutputDev.h  |    5 +----
 2 files changed, 2 insertions(+), 10 deletions(-)

New commits:
commit 1f82b0a455659a41b321c9a73c82a38fe4318159
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Jan 17 17:39:17 2020 +0100

    Remove unused SplashOutputDev variable/function

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 7208f5af..dbbd29a9 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -15,7 +15,7 @@
 //
 // Copyright (C) 2005 Takashi Iwai <tiwai at suse.de>
 // Copyright (C) 2006 Stefan Schweizer <genstef at gentoo.org>
-// Copyright (C) 2006-2019 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2006-2020 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2006 Krzysztof Kowalczyk <kkowalczyk at gmail.com>
 // Copyright (C) 2006 Scott Turner <scotty1024 at mac.com>
 // Copyright (C) 2007 Koji Otani <sho at bbr.jp>
@@ -1283,7 +1283,6 @@ SplashOutputDev::SplashOutputDev(SplashColorMode colorModeA,
   needFontUpdate = false;
   textClipPath = nullptr;
   transpGroupStack = nullptr;
-  nestCount = 0;
   xref = nullptr;
 }
 
@@ -2499,7 +2498,6 @@ void SplashOutputDev::endType3Char(GfxState *state) {
   T3GlyphStack *t3gs;
 
   if (t3GlyphStack->cacheTag) {
-    --nestCount;
     memcpy(t3GlyphStack->cacheData, bitmap->getDataPtr(),
 	   t3GlyphStack->cache->glyphSize);
     delete bitmap;
@@ -2657,7 +2655,6 @@ void SplashOutputDev::type3D1(GfxState *state, double wx, double wy,
   state->setCTM(ctm[0], ctm[1], ctm[2], ctm[3],
 		-t3Font->glyphX, -t3Font->glyphY);
   updateCTM(state, 0, 0, 0, 0, 0, 0);
-  ++nestCount;
 }
 
 void SplashOutputDev::drawType3Glyph(GfxState *state, T3FontCache *t3Font,
@@ -4098,12 +4095,10 @@ void SplashOutputDev::beginTransparencyGroup(GfxState *state, const double *bbox
   transpGroup->tBitmap = bitmap;
   state->shiftCTMAndClip(-tx, -ty);
   updateCTM(state, 0, 0, 0, 0, 0, 0);
-  ++nestCount;
 }
 
 void SplashOutputDev::endTransparencyGroup(GfxState *state) {
   // restore state
-  --nestCount;
   delete splash;
   bitmap = transpGroupStack->origBitmap;
   colorMode = bitmap->getMode();
diff --git a/poppler/SplashOutputDev.h b/poppler/SplashOutputDev.h
index bbf9e03f..7a670d1b 100644
--- a/poppler/SplashOutputDev.h
+++ b/poppler/SplashOutputDev.h
@@ -20,7 +20,7 @@
 // Copyright (C) 2011 Andreas Hartmetz <ahartmetz at gmail.com>
 // Copyright (C) 2011 Andrea Canciani <ranma42 at gmail.com>
 // Copyright (C) 2011, 2017 Adrian Johnson <ajohnson at redneon.com>
-// Copyright (C) 2012, 2015, 2018, 2019 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2012, 2015, 2018-2020 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2015, 2016 William Bader <williambader at hotmail.com>
 // Copyright (C) 2018 Stefan Brüns <stefan.bruens at rwth-aachen.de>
 //
@@ -368,8 +368,6 @@ public:
   void setSkipText(bool skipHorizTextA, bool skipRotatedTextA)
     { skipHorizText = skipHorizTextA; skipRotatedText = skipRotatedTextA; }
 
-  int getNestCount() { return nestCount; }
-
 #if 1 //~tmp: turn off anti-aliasing temporarily
   bool getVectorAntialias() override;
   void setVectorAntialias(bool vaa) override;
@@ -450,7 +448,6 @@ private:
 
   SplashTransparencyGroup *	// transparency group stack
     transpGroupStack;
-  int nestCount;
 };
 
 #endif


More information about the poppler mailing list