Skip to content

Commit 8482547

Browse files
committed
Refactoring: remove unused resolveAlias() method from ClassDef/ConceptDef
1 parent 3642e49 commit 8482547

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/classdef.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ class ClassDefImpl : public DefinitionMixin<ClassDefMutable>
189189
const QCString &ref=QCString(),const QCString &fName=QCString(),
190190
bool isSymbol=TRUE,bool isJavaEnum=FALSE);
191191

192-
ClassDef *resolveAlias() { return this; }
193192
DefType definitionType() const override { return TypeClass; }
194193
CodeSymbolType codeSymbolType() const override;
195194
QCString getOutputFileBase() const override;
@@ -425,7 +424,6 @@ class ClassDefAliasImpl : public DefinitionAliasMixin<ClassDef>
425424
DefType definitionType() const override { return TypeClass; }
426425

427426
const ClassDef *getCdAlias() const { return toClassDef(getAlias()); }
428-
ClassDef *resolveAlias() { return const_cast<ClassDef*>(getCdAlias()); }
429427

430428
CodeSymbolType codeSymbolType() const override
431429
{ return getCdAlias()->codeSymbolType(); }

src/conceptdef.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class ConceptDefImpl : public DefinitionMixin<ConceptDefMutable>
3636
~ConceptDefImpl() override;
3737
NON_COPYABLE(ConceptDefImpl)
3838

39-
ConceptDef *resolveAlias() { return this; }
40-
4139
//---------- ConceptDef
4240
DefType definitionType() const override;
4341
CodeSymbolType codeSymbolType() const override { return CodeSymbolType::Concept; }
@@ -107,7 +105,6 @@ class ConceptDefAliasImpl : public DefinitionAliasMixin<ConceptDef>
107105
NON_COPYABLE(ConceptDefAliasImpl)
108106

109107
const ConceptDef *getCdAlias() const { return toConceptDef(getAlias()); }
110-
ConceptDef *resolveAlias() { return const_cast<ConceptDef*>(getCdAlias()); }
111108

112109
DefType definitionType() const override { return TypeConcept; }
113110
CodeSymbolType codeSymbolType() const override

0 commit comments

Comments
 (0)