[poppler] poppler/Link.cc poppler/Link.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Nov 30 01:09:22 UTC 2019
poppler/Link.cc | 17 -----------------
poppler/Link.h | 7 -------
2 files changed, 24 deletions(-)
New commits:
commit 6e60cd8ef9696c12e4f33eb671013315b2b07790
Author: Albert Astals Cid <aacid at kde.org>
Date: Sat Nov 30 02:04:22 2019 +0100
Links: Remove two unused functions
Note: If you're one of the people using the internal API against our
wishes, you can still roll out these functions yourself
diff --git a/poppler/Link.cc b/poppler/Link.cc
index 4db8fe3d..35ddfb92 100644
--- a/poppler/Link.cc
+++ b/poppler/Link.cc
@@ -969,20 +969,3 @@ Links::~Links() {
for (AnnotLink *link : links)
link->decRefCnt();
}
-
-LinkAction *Links::find(double x, double y) const {
- for (int i = getNumLinks() - 1; i >= 0; --i) {
- if (links[i]->inRect(x, y)) {
- return links[i]->getAction();
- }
- }
- return nullptr;
-}
-
-bool Links::onLink(double x, double y) const {
- for (AnnotLink *link : links) {
- if (link->inRect(x, y))
- return true;
- }
- return false;
-}
diff --git a/poppler/Link.h b/poppler/Link.h
index 59c1ae0b..59ecd4e4 100644
--- a/poppler/Link.h
+++ b/poppler/Link.h
@@ -543,13 +543,6 @@ public:
int getNumLinks() const { return links.size(); }
AnnotLink *getLink(int i) const { return links[i]; }
- // If point <x>,<y> is in a link, return the associated action;
- // else return nullptr.
- LinkAction *find(double x, double y) const;
-
- // Return true if <x>,<y> is in a link.
- bool onLink(double x, double y) const;
-
private:
std::vector<AnnotLink *> links;
More information about the poppler
mailing list