[2/2] http: Remove the custom function for disabling chunked posts

Message ID 1320504168-21345-2-git-send-email-martin@martin.st
State Committed
Commit 18ae3626405a8b3d6dbb7e5b848d354cd7bf9a47
Headers show

Commit Message

Martin Storsjö Nov. 5, 2011, 2:42 p.m.
---
 libavformat/http.c |    5 -----
 libavformat/http.h |    8 --------
 2 files changed, 0 insertions(+), 13 deletions(-)

Comments

Anton Khirnov Nov. 5, 2011, 2:52 p.m. | #1
On Sat,  5 Nov 2011 16:42:48 +0200, Martin Storsjö <martin@martin.st> wrote:
> ---
>  libavformat/http.c |    5 -----
>  libavformat/http.h |    8 --------
>  2 files changed, 0 insertions(+), 13 deletions(-)
> 
> diff --git a/libavformat/http.c b/libavformat/http.c
> index 0030bc7..243a4d7 100644
> --- a/libavformat/http.c
> +++ b/libavformat/http.c
> @@ -78,11 +78,6 @@ void ff_http_set_headers(URLContext *h, const char *headers)
>      av_strlcpy(s->headers, headers, sizeof(s->headers));
>  }
>  
> -void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked)
> -{
> -    ((HTTPContext*)h->priv_data)->chunksize = is_chunked ? 0 : -1;
> -}
> -
>  void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
>  {
>      memcpy(&((HTTPContext*)dest->priv_data)->auth_state,
> diff --git a/libavformat/http.h b/libavformat/http.h
> index c5ff5e1..bd63a19 100644
> --- a/libavformat/http.h
> +++ b/libavformat/http.h
> @@ -43,14 +43,6 @@
>  void ff_http_set_headers(URLContext *h, const char *headers);
>  
>  /**
> - * Enable or disable chunked transfer encoding. (default is enabled)
> - *
> - * @param h URL context for this HTTP connection
> - * @param is_chunked 0 to disable chunking, nonzero otherwise.
> - */
> -void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked);
> -
> -/**
>   * Initialize the authentication state based on another HTTP URLContext.
>   * This can be used to pre-initialize the authentication parameters if
>   * they are known beforehand, to avoid having to do an initial failing
> -- 
> 1.7.3.1
> 

Both patches look ok (I assume you tested that it works).

Patch

diff --git a/libavformat/http.c b/libavformat/http.c
index 0030bc7..243a4d7 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -78,11 +78,6 @@  void ff_http_set_headers(URLContext *h, const char *headers)
     av_strlcpy(s->headers, headers, sizeof(s->headers));
 }
 
-void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked)
-{
-    ((HTTPContext*)h->priv_data)->chunksize = is_chunked ? 0 : -1;
-}
-
 void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
 {
     memcpy(&((HTTPContext*)dest->priv_data)->auth_state,
diff --git a/libavformat/http.h b/libavformat/http.h
index c5ff5e1..bd63a19 100644
--- a/libavformat/http.h
+++ b/libavformat/http.h
@@ -43,14 +43,6 @@ 
 void ff_http_set_headers(URLContext *h, const char *headers);
 
 /**
- * Enable or disable chunked transfer encoding. (default is enabled)
- *
- * @param h URL context for this HTTP connection
- * @param is_chunked 0 to disable chunking, nonzero otherwise.
- */
-void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked);
-
-/**
  * Initialize the authentication state based on another HTTP URLContext.
  * This can be used to pre-initialize the authentication parameters if
  * they are known beforehand, to avoid having to do an initial failing