remove now dead MyList class

Change-Id: I96411ecb072e5135e7d0e6bb276ff782dcb0270c
This commit is contained in:
Noel Grandin
2014-01-10 11:09:15 +02:00
parent 1f3eed97de
commit a506352ecb
2 changed files with 0 additions and 134 deletions

View File

@@ -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:

View File

@@ -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;