remove unused macros

This commit is contained in:
Charles Kerr 2007-07-31 01:21:10 +00:00
parent 88fa592a6e
commit 11752dae78
3 changed files with 5 additions and 10 deletions

View File

@ -58,13 +58,11 @@ typedef struct tr_http_s tr_http_t;
#define TR_HTTP_GET 1
#define TR_HTTP_POST 2
#define TR_HTTP_M_POST 3
tr_http_t * tr_httpClient( int, const char *, int, const char *, ... )
PRINTF( 4, 5 );
tr_http_t * tr_httpClientUrl( int, const char *, ... )
PRINTF( 2, 3 );
tr_http_t * tr_httpClient( int, const char *, int, const char *, ... );
tr_http_t * tr_httpClientUrl( int, const char *, ... );
/* only add headers or body before first pulse */
void tr_httpAddHeader( tr_http_t *, const char *, const char * );
void tr_httpAddBody( tr_http_t *, const char *, ... ) PRINTF( 2, 3 );
void tr_httpAddBody( tr_http_t *, const char *, ... );
void tr_httpGetHeaders( tr_http_t *, const char **, int * );
void tr_httpGetBody( tr_http_t *, const char **, int * );
tr_tristate_t tr_httpPulse( tr_http_t *, const char **, int * );

View File

@ -52,11 +52,9 @@ typedef in_port_t tr_port_t;
#endif
#ifdef __GNUC__
# define UNUSED __attribute__((unused))
# define PRINTF( fmt, args ) __attribute__((format (printf, fmt, args)))
#define UNUSED __attribute__((unused))
#else
# define UNUSED
# define PRINTF( fmt, args )
#define UNUSED
#endif
#define TR_MAX_PEER_COUNT 60

View File

@ -219,7 +219,6 @@ struct tr_peer_s
};
#define peer_dbg( a... ) __peer_dbg( peer, ## a )
static void __peer_dbg( tr_peer_t * peer, char * msg, ... ) PRINTF( 2, 3 );
static void __peer_dbg( tr_peer_t * peer, char * msg, ... )
{