[poppler] poppler/Lexer.h poppler/Object.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 22 17:54:15 UTC 2019


 poppler/Lexer.h  |    4 ++--
 poppler/Object.h |    3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 57c142f62e36254c0eff671daac95c2aee28b801
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Nov 22 18:40:27 2019 +0100

    Remove Object::streamSetPos

diff --git a/poppler/Lexer.h b/poppler/Lexer.h
index 3e062f11..9488ebfd 100644
--- a/poppler/Lexer.h
+++ b/poppler/Lexer.h
@@ -76,8 +76,8 @@ public:
     { return curStr.isStream() ? curStr.getStream()->getPos() : -1; }
 
   // Set position in file.
-  void setPos(Goffset pos, int dir = 0)
-    { if (curStr.isStream()) curStr.streamSetPos(pos, dir); }
+  void setPos(Goffset pos)
+    { if (curStr.isStream()) curStr.getStream()->setPos(pos); }
 
   // Returns true if <c> is a whitespace character.
   static bool isSpace(int c);
diff --git a/poppler/Object.h b/poppler/Object.h
index b839c71c..c1f4f2e2 100644
--- a/poppler/Object.h
+++ b/poppler/Object.h
@@ -422,9 +422,6 @@ inline int Object::streamLookChar() const
 inline char *Object::streamGetLine(char *buf, int size) const
   { OBJECT_TYPE_CHECK(objStream); return stream->getLine(buf, size); }
 
-inline void Object::streamSetPos(Goffset pos, int dir)
-  { OBJECT_TYPE_CHECK(objStream); stream->setPos(pos, dir); }
-
 inline Dict *Object::streamGetDict() const
   { OBJECT_TYPE_CHECK(objStream); return stream->getDict(); }
 


More information about the poppler mailing list