diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-06 14:32:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-22 20:45:18 (GMT) |
commit | 795e99b6cace42caeaab11e07e427bbc914c8fab (patch) | |
tree | 6f2483cedd5ced5e0e47db0147ace7dce522c374 /src | |
parent | 1b4a1663ebc436f37158b8a7bb5443841f06e069 (diff) | |
download | Doxygen-795e99b6cace42caeaab11e07e427bbc914c8fab.zip Doxygen-795e99b6cace42caeaab11e07e427bbc914c8fab.tar.gz Doxygen-795e99b6cace42caeaab11e07e427bbc914c8fab.tar.bz2 |
Refactoring: remove unused ClassDef::getVariableInstance()
Diffstat (limited to 'src')
-rw-r--r-- | src/classdef.cpp | 32 | ||||
-rw-r--r-- | src/classdef.h | 2 |
2 files changed, 0 insertions, 34 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index 25578ed..463808c 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -225,7 +225,6 @@ class ClassDefImpl : public DefinitionMixin<ClassDefMutable> virtual const MemberLists &getMemberLists() const; virtual const MemberGroupList &getMemberGroups() const; virtual const TemplateNameMap &getTemplateBaseClassNames() const; - virtual ClassDef *getVariableInstance(const char *templSpec) const; virtual bool isUsedOnly() const; virtual QCString anchor() const; virtual bool isEmbeddedInOuterScope() const; @@ -498,8 +497,6 @@ class ClassDefAliasImpl : public DefinitionAliasMixin<ClassDef> { return getCdAlias()->getMemberGroups(); } virtual const TemplateNameMap &getTemplateBaseClassNames() const { return getCdAlias()->getTemplateBaseClassNames(); } - virtual ClassDef *getVariableInstance(const char *templSpec) const - { return getCdAlias()->getVariableInstance(templSpec); } virtual bool isUsedOnly() const { return getCdAlias()->isUsedOnly(); } virtual QCString anchor() const @@ -654,12 +651,6 @@ class ClassDefImpl::IMPL */ TemplateInstanceList templateInstances; - /*! Template instances that exists of this class, as defined by variables. - * We do NOT want to document these individually. The key in the - * dictionary is the template argument list. - */ - mutable QDict<ClassDef> *variableInstances = 0; - TemplateNameMap templBaseClassNames; /*! The class this class is an instance of. */ @@ -740,7 +731,6 @@ void ClassDefImpl::IMPL::init(const char *defFileName, const char *name, usesIntfClassDict=0; constraintClassDict=0; subGrouping=Config_getBool(SUBGROUPING); - variableInstances = 0; templateMaster =0; isAbstract = FALSE; isStatic = FALSE; @@ -780,7 +770,6 @@ ClassDefImpl::IMPL::~IMPL() delete usesIntfClassDict; delete constraintClassDict; delete incInfo; - delete variableInstances; } //------------------------------------------------------------------------------------------- @@ -3980,27 +3969,6 @@ ClassDef *ClassDefImpl::insertTemplateInstance(const QCString &fileName, return templateClass; } -ClassDef *ClassDefImpl::getVariableInstance(const char *templSpec) const -{ - if (m_impl->variableInstances==0) - { - m_impl->variableInstances = new QDict<ClassDef>(17); - m_impl->variableInstances->setAutoDelete(TRUE); - } - ClassDefMutable *templateClass=toClassDefMutable(m_impl->variableInstances->find(templSpec)); - if (templateClass==0) - { - Debug::print(Debug::Classes,0," New template variable instance class '%s' '%s'\n",qPrint(name()),qPrint(templSpec)); - QCString tcname = removeRedundantWhiteSpace(name()+templSpec); - templateClass = new ClassDefImpl("<code>",1,1,tcname, - ClassDef::Class,0,0,FALSE); - templateClass->addMembersToTemplateInstance( this, templateArguments(), templSpec ); - templateClass->setTemplateMaster(this); - m_impl->variableInstances->insert(templSpec,templateClass); - } - return templateClass; -} - void ClassDefImpl::setTemplateBaseClassNames(const TemplateNameMap &templateNames) { m_impl->templBaseClassNames = templateNames; diff --git a/src/classdef.h b/src/classdef.h index 24fcc7e..fa3e1ec 100644 --- a/src/classdef.h +++ b/src/classdef.h @@ -336,8 +336,6 @@ class ClassDef : public Definition virtual const TemplateNameMap &getTemplateBaseClassNames() const = 0; - virtual ClassDef *getVariableInstance(const char *templSpec) const = 0; - virtual bool isUsedOnly() const = 0; virtual QCString anchor() const = 0; |