summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-04-11 16:35:27 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-04-11 16:35:27 (GMT)
commitd3e7b06f3a82780083e27bb83360ed9496df9f8d (patch)
tree3b224140a04108103ef1d23882fc0272299d9f1f
parent298ab30b2a2aa0936f4683c9366afd44c00adc60 (diff)
downloadDoxygen-d3e7b06f3a82780083e27bb83360ed9496df9f8d.zip
Doxygen-d3e7b06f3a82780083e27bb83360ed9496df9f8d.tar.gz
Doxygen-d3e7b06f3a82780083e27bb83360ed9496df9f8d.tar.bz2
Remove unreachable code
The else part of the condition of the if statement is not reachable (When entering this part of the code ref.isEmpty() is always True).
-rw-r--r--src/latexdocvisitor.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 0699960..37c2130 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -1578,22 +1578,11 @@ void LatexDocVisitor::startLink(const QCString &ref,const QCString &file,const Q
{
if (ref.isEmpty() && Config_getBool("PDF_HYPERLINKS")) // internal PDF link
{
- if (ref.isEmpty()) {
- m_t << "\\hyperlink{";
- if (!file.isEmpty()) m_t << stripPath(file);
- if (!file.isEmpty() && !anchor.isEmpty()) m_t << "_";
- if (!anchor.isEmpty()) m_t << anchor;
- m_t << "}{";
- }
- else
- {
- QCString *dest;
- m_t << "\\href{";
- if ((dest=Doxygen::tagDestinationDict[ref])) m_t << *dest << "/";
- if (!file.isEmpty()) m_t << file << Doxygen::htmlFileExtension;
- if (!anchor.isEmpty()) m_t << "#" << anchor;
- m_t << "}{";
- }
+ m_t << "\\hyperlink{";
+ if (!file.isEmpty()) m_t << stripPath(file);
+ if (!file.isEmpty() && !anchor.isEmpty()) m_t << "_";
+ if (!anchor.isEmpty()) m_t << anchor;
+ m_t << "}{";
}
else if (ref.isEmpty()) // internal non-PDF link
{