[MPlayer-cvslog] r24888 - in trunk/stream: pnm.c pnm.h

diego subversion at mplayerhq.hu
Tue Oct 30 09:14:41 CET 2007


Author: diego
Date: Tue Oct 30 09:14:41 2007
New Revision: 24888

Log:
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


Modified:
   trunk/stream/pnm.c
   trunk/stream/pnm.h

Modified: trunk/stream/pnm.c
==============================================================================
--- trunk/stream/pnm.c	(original)
+++ trunk/stream/pnm.c	Tue Oct 30 09:14:41 2007
@@ -850,19 +850,6 @@ static int pnm_read (pnm_t *this, char *
   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);
 }

Modified: trunk/stream/pnm.h
==============================================================================
--- trunk/stream/pnm.h	(original)
+++ trunk/stream/pnm.h	Tue Oct 30 09:14:41 2007
@@ -33,9 +33,6 @@ typedef struct pnm_s pnm_t;
 //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
 



More information about the MPlayer-cvslog mailing list