summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/pnm.c13
-rw-r--r--stream/pnm.h3
2 files changed, 0 insertions, 16 deletions
diff --git a/stream/pnm.c b/stream/pnm.c
index 8ae2138607..615ed77d79 100644
--- a/stream/pnm.c
+++ b/stream/pnm.c
@@ -850,19 +850,6 @@ static int pnm_read (pnm_t *this, char *data, int len) {
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 --git a/stream/pnm.h b/stream/pnm.h
index 1c4eb2120b..de508004a7 100644
--- a/stream/pnm.h
+++ b/stream/pnm.h
@@ -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