[3/7] md5proto: Remove the get_file_handle function

Message ID 1322734056-84812-3-git-send-email-martin@martin.st
State Committed
Commit 6af354436ca99324b6d35e8a7a24c1abf6667595
Headers show

Commit Message

Martin Storsjö Dec. 1, 2011, 10:07 a.m.
The private data pointer isn't a file handle, this protocol
doesn't have any file handle to return.
---
 libavformat/md5proto.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

Comments

Luca Barbato Dec. 1, 2011, 10:50 a.m. | #1
On 01/12/11 11:07, Martin Storsjö wrote:
> The private data pointer isn't a file handle, this protocol
> doesn't have any file handle to return.

Ok, I hope nobody was relying on it, but shouldn't since proto is 
private currently...

lu

Patch

diff --git a/libavformat/md5proto.c b/libavformat/md5proto.c
index c580bfd..796b4ea 100644
--- a/libavformat/md5proto.c
+++ b/libavformat/md5proto.c
@@ -79,16 +79,11 @@  static int md5_close(URLContext *h)
     return err;
 }
 
-static int md5_get_handle(URLContext *h)
-{
-    return (intptr_t)h->priv_data;
-}
 
 URLProtocol ff_md5_protocol = {
     .name                = "md5",
     .url_open            = md5_open,
     .url_write           = md5_write,
     .url_close           = md5_close,
-    .url_get_file_handle = md5_get_handle,
     .priv_data_size      = PRIV_SIZE,
 };