# HG changeset patch # User diego # Date 1193732081 0 # Node ID 324dd17d4aaacb97a4d255958d1b1f6c09e8fc90 # Parent f9495196e2d8bc09f48636823a7627e454ca9333 Remove unused functions, fixes the warnings: pnm.c:853: warning: 'pnm_peek_header' defined but not used pnm.c:859: warning: 'pnm_close' defined but not used diff -r f9495196e2d8 -r 324dd17d4aaa stream/pnm.c --- a/stream/pnm.c Tue Oct 30 08:06:39 2007 +0000 +++ b/stream/pnm.c Tue Oct 30 08:14:41 2007 +0000 @@ -850,19 +850,6 @@ return len; } -static int pnm_peek_header (pnm_t *this, char *data) { - - memcpy (data, this->header, this->header_len); - return this->header_len; -} - -static void pnm_close(pnm_t *p) { - - if (p->s >= 0) closesocket(p->s); - free(p->path); - free(p); -} - static int pnm_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *stream_ctrl ) { return pnm_read(stream_ctrl->data, buffer, size); } diff -r f9495196e2d8 -r 324dd17d4aaa stream/pnm.h --- a/stream/pnm.h Tue Oct 30 08:06:39 2007 +0000 +++ b/stream/pnm.h Tue Oct 30 08:14:41 2007 +0000 @@ -33,9 +33,6 @@ //pnm_t* pnm_connect (int fd,char *url); //int pnm_read (pnm_t *this, char *data, int len); -//void pnm_close (pnm_t *this); - -//int pnm_peek_header (pnm_t *this, char *data); #endif