summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-02 19:52:38 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-01-02 19:54:37 (GMT)
commit941bcb4a363771c85d4c1d748db2cba0df1bcaf4 (patch)
tree20c4c74786801d17cc81b3395b9483a4b6b12e17
parent359ff95956304ea7727ccc82864862622a9a3cf7 (diff)
downloadDoxygen-941bcb4a363771c85d4c1d748db2cba0df1bcaf4.zip
Doxygen-941bcb4a363771c85d4c1d748db2cba0df1bcaf4.tar.gz
Doxygen-941bcb4a363771c85d4c1d748db2cba0df1bcaf4.tar.bz2
Refactoring: remove unused GenericsSDict class
-rw-r--r--src/classlist.cpp48
-rw-r--r--src/classlist.h24
-rw-r--r--src/doxygen.h1
3 files changed, 0 insertions, 73 deletions
diff --git a/src/classlist.cpp b/src/classlist.cpp
index 234d038..af64478 100644
--- a/src/classlist.cpp
+++ b/src/classlist.cpp
@@ -113,52 +113,4 @@ void ClassLinkedRefMap::writeDocumentation(OutputList &ol,const Definition * con
}
}
-//-------------------------------------------
-
-void GenericsSDict::insert(const QCString &key,ClassDef *cd)
-{
- int i=key.find('<');
- if (i==-1) return;
- auto argList = stringToArgumentList(SrcLangExt_CSharp, key.mid(i));
- int c = (int)argList->size();
- if (c==0) return;
- GenericsCollection *collection = m_dict.find(key.left(i));
- if (collection==0) // new name
- {
- collection = new GenericsCollection;
- m_dict.append(key.left(i),collection);
- }
- if (collection->find(c)==0) // should always be 0!
- {
- collection->insert(c,cd);
- }
-}
-
-ClassDef *GenericsSDict::find(const QCString &key)
-{
- int i=key.find('<');
- if (i==-1)
- {
- GenericsCollection *collection = m_dict.find(key);
- if (collection && collection->count()==1)
- {
- QIntDictIterator<ClassDef> it(*collection);
- return it.current();
- }
- }
- else
- {
- GenericsCollection *collection = m_dict.find(key.left(i));
- if (collection)
- {
- auto argList = stringToArgumentList(SrcLangExt_CSharp,key.mid(i));
- int c = (int)argList->size();
- return collection->find(c);
- }
- }
- return 0;
-}
-
-
-
diff --git a/src/classlist.h b/src/classlist.h
index fcb3f71..709412b 100644
--- a/src/classlist.h
+++ b/src/classlist.h
@@ -18,33 +18,11 @@
#ifndef CLASSLIST_H
#define CLASSLIST_H
-#include <qlist.h>
-#include <qdict.h>
-
#include "linkedmap.h"
#include "classdef.h"
-#include "sortdict.h"
class Definition;
-class GenericsCollection : public QIntDict<ClassDef>
-{
- public:
- GenericsCollection() : QIntDict<ClassDef>(17) {}
- ~GenericsCollection() {}
-};
-
-class GenericsSDict
-{
- public:
- GenericsSDict() : m_dict(17) { m_dict.setAutoDelete(TRUE); }
- ~GenericsSDict() {}
- void insert(const QCString &key,ClassDef *cd);
- ClassDef *find(const QCString &key);
- private:
- SDict<GenericsCollection> m_dict;
-};
-
class ClassLinkedMap : public LinkedMap<ClassDef>
{
};
@@ -57,6 +35,4 @@ class ClassLinkedRefMap : public LinkedRefMap<const ClassDef>
void writeDocumentation(OutputList &ol,const Definition * container=0) const;
};
-
-
#endif
diff --git a/src/doxygen.h b/src/doxygen.h
index b174698..f80bfae 100644
--- a/src/doxygen.h
+++ b/src/doxygen.h
@@ -49,7 +49,6 @@ class GroupLinkedMap;
class FileDef;
class ClassDef;
class ClassLinkedMap;
-class GenericsSDict;
class MemberNameLinkedMap;
class FileNameLinkedMap;
class NamespaceLinkedMap;