diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-15 09:39:52 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-16 15:14:58 +0200 |
commit | 0ed685f8ff352a5b1ec8604a9e943547f9ca7ef3 (patch) | |
tree | 9dad1e5697bcc76d2b8a0f927b640fdd763e92d9 /svx | |
parent | 7d5922ca8f04604aba57708ee20fb4cdeaea2e44 (diff) |
Remove unused class ContainerSorter
Change-Id: Iba5a8c370a6b097ac0de3911c6a76e6a86d4ac6b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/svdetc.hxx | 20 | ||||
-rw-r--r-- | svx/source/svdraw/svdetc.cxx | 33 |
2 files changed, 0 insertions, 53 deletions
diff --git a/svx/inc/svx/svdetc.hxx b/svx/inc/svx/svdetc.hxx index 1ac93a383b4b..dc5760b1c239 100644 --- a/svx/inc/svx/svdetc.hxx +++ b/svx/inc/svx/svdetc.hxx @@ -30,7 +30,6 @@ #define _SVDETC_HXX #include <tools/string.hxx> -#include <tools/contnr.hxx> #include <vcl/outdev.hxx> #include <tools/shl.hxx> @@ -119,25 +118,6 @@ class SfxItemSet; // Bei XFILL_NONE gibt's sal_False und rCol bleibt unveraendert. SVX_DLLPUBLIC bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol); -class ContainerSorter { -protected: - Container& rCont; -private: - void ImpSubSort(long nL, long nR) const; -public: - ContainerSorter(Container& rNewCont): rCont(rNewCont) {} - void DoSort(sal_uIntPtr a=0, sal_uIntPtr b=0xFFFFFFFF) const; - - // Compare() has to return: - // -1 if *pElem1<*pElem2 - // 0 if *pElem1=*pElem2 - // +1 if *pElem1>*pElem2 - virtual int Compare(const void* pElem1, const void* pElem2) const=0; - -protected: - ~ContainerSorter() {} -}; - //////////////////////////////////////////////////////////////////////////////////////////////////// // Ein ItemSet auf Outliner- bzw. EditEngine-Items durchsuchen diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 776f5265a2eb..54d9ae6faa82 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -235,39 +235,6 @@ IMPL_LINK(OLEObjCache, UnloadCheckHdl, AutoTimer*, /*pTim*/) return 0; } -void ContainerSorter::DoSort(sal_uIntPtr a, sal_uIntPtr b) const -{ - sal_uIntPtr nAnz=rCont.Count(); - if (b>nAnz) b=nAnz; - if (b>0) b--; - if (a<b) ImpSubSort(a,b); -} - -void ContainerSorter::ImpSubSort(long nL, long nR) const -{ - long i,j; - const void* pX; - void* pI; - void* pJ; - i=nL; - j=nR; - pX=rCont.GetObject((nL+nR)/2); - do { - pI=rCont.Seek(i); - while (pI!=pX && Compare(pI,pX)<0) { i++; pI=rCont.Next(); } - pJ=rCont.Seek(j); - while (pJ!=pX && Compare(pX,pJ)<0) { j--; pJ=rCont.Prev(); } - if (i<=j) { - rCont.Replace(pJ,i); - rCont.Replace(pI,j); - i++; - j--; - } - } while (i<=j); - if (nL<j) ImpSubSort(nL,j); - if (i<nR) ImpSubSort(i,nR); -} - //////////////////////////////////////////////////////////////////////////////////////////////////// void SdrLinkList::Clear() |