changeset 24860:324dd17d4aaa

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
author diego
date Tue, 30 Oct 2007 08:14:41 +0000
parents f9495196e2d8
children a974b051e8cc
files stream/pnm.c stream/pnm.h
diffstat 2 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }
--- 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