summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/http/http_response_headers.cc24
-rw-r--r--net/http/http_response_headers.h3
2 files changed, 0 insertions, 27 deletions
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.