mirror of https://github.com/mpv-player/mpv
Remove unused functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31020 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9521c190c3
commit
7bf961b1a3
|
@ -75,27 +75,6 @@ int vcd_seek_to_track(void *vcd, int track);
|
|||
guiInterface_t guiIntfStruct;
|
||||
int guiWinID=-1;
|
||||
|
||||
static char * gstrcat( char ** dest, const char * src )
|
||||
{
|
||||
char * tmp = NULL;
|
||||
|
||||
if ( !src ) return NULL;
|
||||
|
||||
if ( *dest )
|
||||
{
|
||||
tmp=malloc( strlen( *dest ) + strlen( src ) + 1 );
|
||||
|
||||
if ( tmp ) /* TODO: advanced error handling */
|
||||
{
|
||||
strcpy( tmp,*dest ); strcat( tmp,src ); free( *dest );
|
||||
}
|
||||
}
|
||||
else
|
||||
{ tmp=malloc( strlen( src ) + 1 ); strcpy( tmp,src ); }
|
||||
*dest=tmp;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
int gstrcmp( const char * a,const char * b )
|
||||
{
|
||||
if ( !a && !b ) return 0;
|
||||
|
@ -128,12 +107,6 @@ void gfree( void ** p )
|
|||
free( *p ); *p=NULL;
|
||||
}
|
||||
|
||||
static void gset( char ** str, const char * what )
|
||||
{
|
||||
if ( *str ) { if ( !strstr( *str,what ) ) { gstrcat( str,"," ); gstrcat( str,what ); }}
|
||||
else gstrcat( str,what );
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief this actually creates a new list containing only one element...
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue