Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
albert-github committed Apr 11, 2015
1 parent 298ab30 commit d3e7b06
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions src/latexdocvisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit d3e7b06

Please sign in to comment.