mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24888 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
33772c1065
commit
4de99aade1
13
stream/pnm.c
13
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);
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user