Skip to content

Commit

Permalink
Cleanup unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Apr 3, 2024
1 parent 035622d commit ea75752
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/markdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,7 @@ void Markdown::Private::writeOneLineHeaderOrRuler(std::string_view data)
else if ((level=isAtxHeader(data,header,id,TRUE)))
{
QCString hTag;
if (level>=SectionType::MinLevel && level<=SectionType::MaxLevel && !id.isEmpty())
if (!id.isEmpty())
{
switch (level)
{
Expand All @@ -2676,10 +2676,6 @@ void Markdown::Private::writeOneLineHeaderOrRuler(std::string_view data)
}
else
{
if (!id.isEmpty())
{
out+="\\ianchor{" + header + "} "+id+"\\ilinebr ";
}
hTag.sprintf("h%d",level);
out+="<"+hTag+">";
out+=header;
Expand Down

0 comments on commit ea75752

Please sign in to comment.