diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/util.cpp b/src/util.cpp index 3feb8db..7a0b03e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1554,83 +1554,6 @@ void trimBaseClassScope(const BaseClassList &bcl,QCString &s,int level=0) } } -#if 0 -/*! if either t1 or t2 contains a namespace scope, then remove that - * scope. If neither or both have a namespace scope, t1 and t2 remain - * unchanged. - */ -static void trimNamespaceScope(QCString &t1,QCString &t2,const QCString &nsName) -{ - int p1=t1.length(); - int p2=t2.length(); - for (;;) - { - int i1=p1==0 ? -1 : t1.findRev("::",p1); - int i2=p2==0 ? -1 : t2.findRev("::",p2); - if (i1==-1 && i2==-1) - { - return; - } - if (i1!=-1 && i2==-1) // only t1 has a scope - { - QCString scope=t1.left(i1); - replaceNamespaceAliases(scope,i1); - - int so=nsName.length(); - do - { - QCString fullScope=nsName.left(so); - if (!fullScope.isEmpty() && !scope.isEmpty()) fullScope+="::"; - fullScope+=scope; - if (!fullScope.isEmpty() && Doxygen::namespaceSDict[fullScope]!=0) // scope is a namespace - { - t1 = t1.right(t1.length()-i1-2); - return; - } - if (so==0) - { - so=-1; - } - else if ((so=nsName.findRev("::",so-1))==-1) - { - so=0; - } - } - while (so>=0); - } - else if (i1==-1 && i2!=-1) // only t2 has a scope - { - QCString scope=t2.left(i2); - replaceNamespaceAliases(scope,i2); - - int so=nsName.length(); - do - { - QCString fullScope=nsName.left(so); - if (!fullScope.isEmpty() && !scope.isEmpty()) fullScope+="::"; - fullScope+=scope; - if (!fullScope.isEmpty() && Doxygen::namespaceSDict[fullScope]!=0) // scope is a namespace - { - t2 = t2.right(t2.length()-i2-2); - return; - } - if (so==0) - { - so=-1; - } - else if ((so=nsName.findRev("::",so-1))==-1) - { - so=0; - } - } - while (so>=0); - } - p1 = QMAX(i1-2,0); - p2 = QMAX(i2-2,0); - } -} -#endif - static void stripIrrelevantString(QCString &target,const QCString &str) { if (target==str) { target.resize(0); return; } |