From ee2ef21332a01df9d6af37285274e593438d6b83 Mon Sep 17 00:00:00 2001 From: "adamk@chromium.org" Date: Fri, 11 Feb 2011 00:30:00 +0000 Subject: Remove unused HttpResponseHeaders::GetRawHeaders method. Review URL: http://codereview.chromium.org/6469003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74530 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_response_headers.cc | 24 ------------------------ net/http/http_response_headers.h | 3 --- 2 files changed, 27 deletions(-) (limited to 'net/http') diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc index 1e56f8e..5bf2beb 100644 --- a/net/http/http_response_headers.cc +++ b/net/http/http_response_headers.cc @@ -416,30 +416,6 @@ void HttpResponseHeaders::GetNormalizedHeaders(std::string* output) const { output->push_back('\n'); } -void HttpResponseHeaders::GetRawHeaders(std::string* output) const { - if (!output) - return; - output->erase(); - const char* headers_string = raw_headers().c_str(); - size_t headers_length = raw_headers().length(); - if (!headers_string) - return; - // The headers_string is a NULL-terminated status line, followed by NULL- - // terminated headers. - std::string raw_string = headers_string; - size_t current_length = strlen(headers_string) + 1; - while (headers_length > current_length) { - // Move to the next header, and append it. - headers_string += current_length; - headers_length -= current_length; - raw_string += "\n"; - raw_string += headers_string; - // Get the next header location. - current_length = strlen(headers_string) + 1; - } - *output = raw_string; -} - bool HttpResponseHeaders::GetNormalizedHeader(const std::string& name, std::string* value) const { // If you hit this assertion, please use EnumerateHeader instead! diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h index df92c23..3c2eae0 100644 --- a/net/http/http_response_headers.h +++ b/net/http/http_response_headers.h @@ -100,9 +100,6 @@ class HttpResponseHeaders // void GetNormalizedHeaders(std::string* output) const; - // Gets the raw stored headers, in human-readable form. - void GetRawHeaders(std::string* output) const; - // Fetch the "normalized" value of a single header, where all values for the // header name are separated by commas. See the GetNormalizedHeaders for // format details. Returns false if this header wasn't found. -- cgit v1.1