Commit 6e60cd8e authored by Albert Astals Cid's avatar Albert Astals Cid

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
parent 82dc6015
......@@ -969,20 +969,3 @@ Links::~Links() {
for (AnnotLink *link : links)
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;
......@@ -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;
std::vector<AnnotLink *> links;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment