Skip to content

Commit 82da90c

Browse files
Removed some dead code (doxygen#11851)
* refactor(xmlgen): remove dead finish method * refactor(layout): remove dead clear method * refactor(growbuf): remove dead reserve, get, and empty method * refactor(textstream): remove dead stream, and file function * refactor(arguments): remove dead front, and at method * fix(xmlgen): remove commented line * Revert "refactor(arguments): remove dead front, and at method" This reverts commit 5d16d41. * Revert "refactor(growbuf): remove dead reserve, get, and empty method" This reverts commit 5227489.
1 parent 877f10d commit 82da90c

File tree

6 files changed

+0
-29
lines changed

6 files changed

+0
-29
lines changed

src/htmlgen.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3632,11 +3632,6 @@ void HtmlGenerator::endMemberDeclaration(const QCString &anchor,const QCString &
36323632
{
36333633
}
36343634

3635-
QCString HtmlGenerator::getMathJaxMacros()
3636-
{
3637-
return getConvertLatexMacro();
3638-
}
3639-
36403635
QCString HtmlGenerator::getNavTreeCss()
36413636
{
36423637
ResourceMgr &mgr = ResourceMgr::instance();

src/htmlgen.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class HtmlGenerator : public OutputGenerator, public OutputGenIntf
113113
static void writeExternalSearchPage();
114114
static QCString writeLogoAsString(const QCString &path);
115115
static QCString writeSplitBarAsString(const QCString &name,const QCString &relpath,const QCString &allMembersFile);
116-
static QCString getMathJaxMacros();
117116
static QCString getNavTreeCss();
118117
void clearBuffer();
119118

src/layout.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ struct LayoutNavEntry
220220
LayoutNavEntryList &children() { return m_children; }
221221
void setVisible(bool v) { m_visible = v; }
222222
bool visible() const { return m_visible; }
223-
void clear() { m_children.clear(); }
224223
void insertChild(size_t pos,std::unique_ptr<LayoutNavEntry> &&e);
225224
void appendChild(std::unique_ptr<LayoutNavEntry> &&e);
226225
void updateVisibility(LayoutNavEntry *parent);

src/textstream.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,6 @@ class TextStream final
7878
m_f = f;
7979
}
8080

81-
/** Returns the attached std::ostream object.
82-
* @see setStream()
83-
*/
84-
std::ostream *stream() const
85-
{
86-
return m_s;
87-
}
88-
89-
FILE *file() const
90-
{
91-
return m_f;
92-
}
93-
9481
/** Adds a character to the stream */
9582
TextStream &operator<<( char c)
9683
{

src/xmlgen.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,6 @@ void XMLCodeGenerator::writeLineNumber(const QCString &extRef,const QCString &co
352352
}
353353
}
354354

355-
void XMLCodeGenerator::finish()
356-
{
357-
XML_DB(("(finish insideCodeLine=%d)\n",m_insideCodeLine));
358-
if (m_insideCodeLine) endCodeLine();
359-
}
360-
361355
void XMLCodeGenerator::startCodeFragment(const QCString &)
362356
{
363357
XML_DB(("(startCodeFragment)\n"));
@@ -499,7 +493,6 @@ void writeXMLCodeBlock(TextStream &t,FileDef *fd)
499493
nullptr, // memberDef
500494
TRUE // showLineNumbers
501495
);
502-
//xmlList.get<XMLCodeGenerator>(OutputType::XML)->finish();
503496
xmlList.endCodeFragment("DoxyCode");
504497
}
505498

src/xmlgen.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ class XMLCodeGenerator : public OutputCodeIntf
4949
void startFold(int,const QCString &,const QCString &) override {}
5050
void endFold() override {}
5151

52-
void finish();
53-
5452
private:
5553
TextStream *m_t;
5654
QCString m_refId;

0 commit comments

Comments
 (0)