(trunk libT) remove dead code -- tr_assert()

This commit is contained in:
Charles Kerr
2009-12-28 23:11:26 +00:00
parent cee48f8c07
commit ac202f13bb
4 changed files with 5 additions and 45 deletions

View File

@@ -224,26 +224,6 @@ tr_getLogTimeStr( char * buf, int buflen )
return buf;
}
void
tr_assertImpl( const char * file, int line, const char * test, const char * fmt, ... )
{
char buf[64];
fprintf( stderr, "[%s] Transmission %s Assertion \"%s\" failed at %s:%d. ",
tr_getLogTimeStr( buf, sizeof( buf ) ),
LONG_VERSION_STRING, test, file, line );
if( fmt && *fmt ) {
va_list args;
fputc( '(', stderr );
va_start( args, fmt );
vfprintf( stderr, fmt, args );
va_end( args );
fputs( ") ", stderr );
}
fputs( "Please report this bug at <http://trac.transmissionbt.com/newticket>; Thank you.\n", stderr );
abort( );
}
tr_bool
tr_deepLoggingIsActive( void )
{