1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

remove unused code

This commit is contained in:
Charles Kerr 2009-08-31 23:31:43 +00:00
parent 78b23a933d
commit be98310bb5
2 changed files with 0 additions and 21 deletions

View file

@ -35,14 +35,6 @@ tr_ptrArrayDestruct( tr_ptrArray * p, PtrArrayForeachFunc func )
memset( p, ~0, sizeof( tr_ptrArray ) );
}
tr_ptrArray*
tr_ptrArrayNew( void )
{
tr_ptrArray * p = tr_new( tr_ptrArray, 1 );
*p = TR_PTR_ARRAY_INIT;
return p;
}
tr_ptrArray*
tr_ptrArrayDup( tr_ptrArray* in )
{
@ -69,14 +61,6 @@ tr_ptrArrayForeach( tr_ptrArray * t,
func( t->items[i] );
}
void
tr_ptrArrayFree( tr_ptrArray * t,
PtrArrayForeachFunc func )
{
tr_ptrArrayDestruct( t, func );
tr_free( t );
}
void**
tr_ptrArrayPeek( tr_ptrArray * t,
int * size )

View file

@ -41,16 +41,11 @@ extern const tr_ptrArray TR_PTR_ARRAY_INIT;
void tr_ptrArrayDestruct( tr_ptrArray*, PtrArrayForeachFunc func );
tr_ptrArray * tr_ptrArrayNew( void );
tr_ptrArray * tr_ptrArrayDup( tr_ptrArray* );
void tr_ptrArrayForeach( tr_ptrArray * array,
PtrArrayForeachFunc func );
void tr_ptrArrayFree( tr_ptrArray * array,
PtrArrayForeachFunc func );
void* tr_ptrArrayNth( tr_ptrArray * array,
int nth );