From 0ed685f8ff352a5b1ec8604a9e943547f9ca7ef3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 15 Aug 2012 09:39:52 +0200 Subject: Remove unused class ContainerSorter Change-Id: Iba5a8c370a6b097ac0de3911c6a76e6a86d4ac6b --- svx/inc/svx/svdetc.hxx | 20 -------------------- svx/source/svdraw/svdetc.cxx | 33 --------------------------------- 2 files changed, 53 deletions(-) (limited to 'svx') 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 -#include #include #include @@ -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