summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-11-30 02:04:22 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-11-30 02:04:22 +0100
commit6e60cd8ef9696c12e4f33eb671013315b2b07790 (patch)
tree9f9ae406ccbe668c20c0ed918d0c0773e8722588 /poppler
parent82dc60155a015e5798db6f78a5f165dc7dd376c9 (diff)
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
Diffstat (limited to 'poppler')
-rw-r--r--poppler/Link.cc17
-rw-r--r--poppler/Link.h7
2 files changed, 0 insertions, 24 deletions
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;