summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-10 11:09:15 +0200
committerNoel Grandin <noel@peralex.com>2014-01-20 13:14:46 +0200
commita506352ecb17623feadc09b3edd6a108d64fb740 (patch)
tree126e613a64a82fc3c15a11926681bb8cb0b7916a /scaddins
parent1f3eed97de1c3dcbf532cd63023239a4543ae1dc (diff)
remove now dead MyList class
Change-Id: I96411ecb072e5135e7d0e6bb276ff782dcb0270c
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx50
-rw-r--r--scaddins/source/analysis/analysishelper.hxx84
2 files changed, 0 insertions, 134 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index a122abcbc8a1..0c91ab8a5ba2 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -1391,56 +1391,6 @@ double GetCoupnum( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_I
-const sal_uInt32 MyList::nStartSize = 16;
-const sal_uInt32 MyList::nIncrSize = 16;
-
-
-void MyList::_Grow( void )
-{
- nSize += nIncrSize;
-
- void** pNewData = new void*[ nSize ];
- memcpy( pNewData, pData, nNew * sizeof( void* ) );
-
- delete[] pData;
- pData = pNewData;
-}
-
-
-MyList::MyList( void )
-{
- nSize = nStartSize;
- pData = new void*[ nSize ];
- nNew = nAct = 0;
-}
-
-
-MyList::~MyList()
-{
- delete[] pData;
-}
-
-
-void MyList::Insert( void* p, sal_uInt32 n )
-{
- if( n >= nNew )
- Append( p );
- else
- {
- Grow();
-
- void** pIns = pData + n;
- memmove( pIns + 1, pIns, ( nNew - n ) * sizeof( void* ) );
-
- *pIns = p;
-
- nNew++;
- }
-}
-
-
-
-
class AnalysisRscStrArrLoader : public Resource
{
private:
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index f2c74a3ba385..f5658201b453 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -148,35 +148,6 @@ double GetCoupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int
-class MyList
-{
-private:
- static const sal_uInt32 nStartSize;
- static const sal_uInt32 nIncrSize;
-
- void** pData; // pointer array
- sal_uInt32 nSize; // array size
- sal_uInt32 nNew; // next index to be inserted at
- sal_uInt32 nAct; // actual for iterations
-
- void _Grow( void );
- inline void Grow( void );
-protected:
-public:
- MyList( void );
- virtual ~MyList();
-
- inline const void* GetObject( sal_uInt32 nIndex ) const;
- inline const void* First( void );
- inline const void* Next( void );
-
- inline void Append( void* pNewElement );
- void Insert( void* pNewLement, sal_uInt32 nPlace );
-
- inline sal_uInt32 Count( void ) const;
-};
-
-
enum FDCategory
{
FDCat_AddIn,
@@ -616,61 +587,6 @@ inline void AlignDate( sal_uInt16& rD, sal_uInt16 nM, sal_uInt16 nY )
}
-inline void MyList::Grow( void )
-{
- if( nNew >= nSize )
- _Grow();
-}
-
-
-inline const void* MyList::GetObject( sal_uInt32 n ) const
-{
- if( n < nNew )
- return pData[ n ];
- else
- return NULL;
-}
-
-
-inline const void* MyList::First( void )
-{
- nAct = 0;
- if( nNew )
- return pData[ 0 ];
- else
- return NULL;
-}
-
-
-inline const void* MyList::Next( void )
-{
- nAct++;
- if( nAct < nNew )
- return pData[ nAct ];
- else
- {
- nAct--;
- return NULL;
- }
-}
-
-
-inline void MyList::Append( void* p )
-{
- Grow();
- pData[ nNew ] = p;
- nNew++;
-}
-
-
-inline sal_uInt32 MyList::Count( void ) const
-{
- return nNew;
-}
-
-
-
-
inline sal_uInt16 FuncData::GetUINameID( void ) const
{
return nUINameID;