[poppler] poppler/Link.cc poppler/Link.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jan 4 10:31:30 UTC 2020


 poppler/Link.cc |    6 +-----
 poppler/Link.h  |    3 ---
 2 files changed, 1 insertion(+), 8 deletions(-)

New commits:
commit 21a7a98ad926b2e0aa3646d0c07ff13df8777f8b
Author: Adam Reichold <adam.reichold at t-online.de>
Date:   Sat Jan 4 09:31:03 2020 +0100

    Remove LinkAction::setNextActions as this setter should not be used outside of the ::parseAction method.

diff --git a/poppler/Link.cc b/poppler/Link.cc
index 74904acd..888a0f1b 100644
--- a/poppler/Link.cc
+++ b/poppler/Link.cc
@@ -199,7 +199,7 @@ LinkAction *LinkAction::parseAction(const Object *obj, const GooString *baseURI,
     }
   }
 
-  action->setNextActions(std::move(actionList));
+  action->nextActionList = std::move(actionList);
 
   return action;
 }
@@ -208,10 +208,6 @@ const std::vector<LinkAction*>& LinkAction::nextActions() const {
   return nextActionList;
 }
 
-void LinkAction::setNextActions(std::vector<LinkAction*>&& actions) {
-  nextActionList = std::move(actions);
-}
-
 //------------------------------------------------------------------------
 // LinkDest
 //------------------------------------------------------------------------
diff --git a/poppler/Link.h b/poppler/Link.h
index b6fb9fb4..22f43d9f 100644
--- a/poppler/Link.h
+++ b/poppler/Link.h
@@ -87,9 +87,6 @@ public:
   // The list contains pointer to LinkAction objects.
   const std::vector<LinkAction*>& nextActions() const;
 
-  // Sets the next action list.
-  void setNextActions(std::vector<LinkAction*>&& actions);
-
 private:
   static LinkAction *parseAction(const Object *obj, const GooString *baseURI, std::set<int> *seenNextActions);
 


More information about the poppler mailing list