summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svl/inc/svl/svarray.hxx76
-rw-r--r--sw/source/core/txtnode/ndhints.cxx4
-rwxr-xr-xunusedcode.easy5
3 files changed, 3 insertions, 82 deletions
diff --git a/svl/inc/svl/svarray.hxx b/svl/inc/svl/svarray.hxx
index 556f10460787..609338a4b98b 100644
--- a/svl/inc/svl/svarray.hxx
+++ b/svl/inc/svl/svarray.hxx
@@ -25,26 +25,11 @@
* Hier folgt die Beschreibung fuer die exportierten Makros:
*
* SV_DECL_PTRARR_SORT(nm, AE, IS, GS)
-* SV_IMPL_PTRARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit Pointern, das nach
-* Pointern sortiert ist. Basiert auf einem PTRARR
-*
-* SV_DECL_PTRARR_SORT_DEL(nm, AE, IS, GS)
-* SV_IMPL_PTRARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit Pointern, das nach
-* Pointern sortiert ist. Basiert auf einem PTRARR_DEL
-*
-* SV_DECL_PTRARR_SORT(nm, AE, IS, GS)
* SV_IMPL_OP_PTRARR_SORT( nm,AE )
* defieniere/implementiere ein Sort-Array mit Pointern, das nach
* Objecten sortiert ist. Basiert auf einem PTRARR.
* Sortierung mit Hilfe der Object-operatoren "<" und "=="
*
-* SV_DECL_PTRARR_SORT_DEL(nm, AE, IS, GS)
-* SV_IMPL_OP_PTRARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit Pointern, das nach
-* Objecten sortiert ist. Basiert auf einem PTRARR_DEL.
-* Sortierung mit Hilfe der Object-operatoren "<" und "=="
***********************************************************************/
#include "svl/svldllapi.h"
@@ -141,8 +126,8 @@ void nm::Remove( const AE &aE, sal_uInt16 nL )\
nm##_SAR::Remove( nP, nL);\
}\
-#define _SV_DECL_PTRARR_SORT_ALG(nm, AE, IS, vis)\
-class vis nm##_SAR: public SvPtrarr \
+#define SV_DECL_PTRARR_SORT(nm, AE, IS)\
+class nm##_SAR: public SvPtrarr \
{\
public:\
nm##_SAR( sal_uInt16 nIni=IS )\
@@ -177,7 +162,7 @@ private:\
nm##_SAR& operator=( const nm##_SAR& );\
};\
\
-class vis nm : private nm##_SAR \
+class nm : private nm##_SAR \
{\
public:\
nm(sal_uInt16 nSize = IS)\
@@ -201,66 +186,11 @@ public:\
sal_uInt16 GetPos( const AE& aE ) const { \
return SvPtrarr::GetPos((const VoidPtr&)aE);\
}\
-\
-/* Das Ende stehe im DECL-Makro !!! */
-
-#define SV_DECL_PTRARR_SORT(nm, AE, IS)\
-_SV_DECL_PTRARR_SORT_ALG(nm, AE, IS,)\
-private:\
- nm( const nm& );\
- nm& operator=( const nm& );\
-};
-
-#define SV_DECL_PTRARR_SORT_DEL(nm, AE, IS)\
-_SV_DECL_PTRARR_SORT_ALG(nm, AE, IS,)\
- ~nm() { DeleteAndDestroy( 0, Count() ); }\
private:\
nm( const nm& );\
nm& operator=( const nm& );\
};
-#define SV_IMPL_PTRARR_SORT( nm,AE )\
-_SV_IMPL_SORTAR_ALG( nm,AE )\
-void nm::DeleteAndDestroy( sal_uInt16 nP, sal_uInt16 nL ) { \
- if( nL ) {\
- OSL_ENSURE( nP < nA && nP + nL <= nA, "ERR_VAR_DEL" );\
- for( sal_uInt16 n=nP; n < nP + nL; n++ ) \
- delete *((AE*)pData+n); \
- SvPtrarr::Remove( nP, nL ); \
- } \
-} \
-sal_Bool nm::Seek_Entry( const AE aE, sal_uInt16* pP ) const\
-{\
- register sal_uInt16 nO = nm##_SAR::Count(),\
- nM, \
- nU = 0;\
- if( nO > 0 )\
- {\
- nO--;\
- register long rCmp = (long)aE;\
- while( nU <= nO )\
- {\
- nM = nU + ( nO - nU ) / 2;\
- if( (long)*(pData + nM) == rCmp )\
- {\
- if( pP ) *pP = nM;\
- return sal_True;\
- }\
- else if( (long)*(pData+ nM) < (long)aE )\
- nU = nM + 1;\
- else if( nM == 0 )\
- {\
- if( pP ) *pP = nU;\
- return sal_False;\
- }\
- else\
- nO = nM - 1;\
- }\
- }\
- if( pP ) *pP = nU;\
- return sal_False;\
-}
-
#define SV_IMPL_OP_PTRARR_SORT( nm,AE )\
_SV_IMPL_SORTAR_ALG( nm,AE )\
void nm::DeleteAndDestroy( sal_uInt16 nP, sal_uInt16 nL ) { \
diff --git a/sw/source/core/txtnode/ndhints.cxx b/sw/source/core/txtnode/ndhints.cxx
index 8b495c27139d..8799b6bd699c 100644
--- a/sw/source/core/txtnode/ndhints.cxx
+++ b/sw/source/core/txtnode/ndhints.cxx
@@ -54,10 +54,6 @@ inline sal_Bool IsEqual( const SwTxtAttr &rHt1, const SwTxtAttr &rHt2 )
* IsLessStart()
*************************************************************************/
-// SV_IMPL_OP_PTRARR_SORT( SwpHtStart, SwTxtAttr* )
-// kein SV_IMPL_PTRARR_SORT( name,ArrElement )
-// unser SEEK_PTR_TO_OBJECT_NOTL( name,ArrElement )
-
// Sortierreihenfolge: Start, Ende (umgekehrt!), Which-Wert (umgekehrt!),
// als letztes die Adresse selbst
diff --git a/unusedcode.easy b/unusedcode.easy
index cf9da8859da9..fad89f697cba 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1,9 +1,4 @@
FontSelectPattern::FontSelectPattern(PhysicalFontFace const&, Size const&, float, int, bool)
-InsCapOptArr::Insert(InsCapOptArr const*, unsigned short, unsigned short)
-InsCapOptArr::Insert(InsCaptionOpt* const&, unsigned short&)
-InsCapOptArr::Insert(InsCaptionOpt* const*, unsigned short)
-InsCapOptArr::Remove(InsCaptionOpt* const&, unsigned short)
-InsCapOptArr::Remove(unsigned short, unsigned short)
PopupMenu::SetSelectedEntry(unsigned short)
RtfAttributeOutput::WriteHex(rtl::OString)
SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, com::sun::star::uno::Sequence<signed char>, unsigned char)