summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-13 09:16:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-13 10:11:45 +0000
commit220b97fd143da72a8c9f56cdee30bb31e7180a07 (patch)
tree8b04419ac6976e9652fcbab74bd63a5a4f9155fa /basic
parent0d486af418b8141ffe25f05a33570abd1e93d13e (diff)
SbTextPortions, etc can completely go
Diffstat (limited to 'basic')
-rw-r--r--basic/inc/basic/sbdef.hxx42
-rw-r--r--basic/source/classes/sb.cxx2
2 files changed, 0 insertions, 44 deletions
diff --git a/basic/inc/basic/sbdef.hxx b/basic/inc/basic/sbdef.hxx
index 513f241fc11d..baa8d5086bdd 100644
--- a/basic/inc/basic/sbdef.hxx
+++ b/basic/inc/basic/sbdef.hxx
@@ -64,48 +64,6 @@ struct SbTextPortion
SbTextType eType; // Type of the portion
};
-typedef sal_Bool (*FnForEach_SbTextPortions)( const SbTextPortion &, void* );
-class BASIC_DLLPUBLIC SbTextPortions
-{
-protected:
- SbTextPortion *pData;
- sal_uInt16 nFree;
- sal_uInt16 nA;
-
- void _resize(size_t n);
-
-public:
- SbTextPortions( sal_uInt16= 16, sal_uInt8= 16 );
- ~SbTextPortions() { rtl_freeMemory( pData ); }
-
- _SVVARARR_DEF_GET_OP_INLINE(SbTextPortions, SbTextPortion )
- SbTextPortion & GetObject(sal_uInt16 nP) const { return (*this)[nP]; }
-
- void Insert( const SbTextPortion & aE, sal_uInt16 nP );
- void Insert( const SbTextPortion *pE, sal_uInt16 nL, sal_uInt16 nP );
- void Remove( sal_uInt16 nP, sal_uInt16 nL = 1 );
- void Replace( const SbTextPortion & aE, sal_uInt16 nP );
- void Replace( const SbTextPortion *pE, sal_uInt16 nL, sal_uInt16 nP );
- sal_uInt16 Count() const { return nA; }
- const SbTextPortion* GetData() const { return (const SbTextPortion*)pData; }
-
- void ForEach( CONCAT( FnForEach_, SbTextPortions ) fnForEach, void* pArgs = 0 )
- {
- _ForEach( 0, nA, fnForEach, pArgs );
- }
- void ForEach( sal_uInt16 nS, sal_uInt16 nE,
- CONCAT( FnForEach_, SbTextPortions ) fnForEach, void* pArgs = 0 )
- {
- _ForEach( nS, nE, fnForEach, pArgs );
- }
-
- void _ForEach( sal_uInt16 nStt, sal_uInt16 nE,
- CONCAT( FnForEach_, SbTextPortions ) fnCall, void* pArgs = 0 );
-private:
- BASIC_DLLPRIVATE SbTextPortions( const SbTextPortions& );
- BASIC_DLLPRIVATE SbTextPortions& operator=( const SbTextPortions& );
-};
-
// Returns type name for Basic type, array flag is ignored
// implementation: basic/source/runtime/methods.cxx
BASIC_DLLPUBLIC String getBasicTypeName( SbxDataType eType );
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index 85cc4107d861..72149878986b 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -63,8 +63,6 @@
#include <com/sun/star/script/ModuleInfo.hpp>
using namespace ::com::sun::star::script;
-SV_IMPL_VARARR(SbTextPortions,SbTextPortion)
-
TYPEINIT1(StarBASIC,SbxObject)
#define RTLNAME "@SBRTL"