summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.cc
diff options
context:
space:
mode:
authoradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 00:30:00 +0000
committeradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 00:30:00 +0000
commitee2ef21332a01df9d6af37285274e593438d6b83 (patch)
tree3d7a6c6b3325ca9d0a8689033dc0b6a22ea6799f /net/http/http_response_headers.cc
parent2b78be3c1dd7cc0232aa1a24446a17299d5760e8 (diff)
downloadchromium_src-ee2ef21332a01df9d6af37285274e593438d6b83.zip
chromium_src-ee2ef21332a01df9d6af37285274e593438d6b83.tar.gz
chromium_src-ee2ef21332a01df9d6af37285274e593438d6b83.tar.bz2
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
Diffstat (limited to 'net/http/http_response_headers.cc')
-rw-r--r--net/http/http_response_headers.cc24
1 files changed, 0 insertions, 24 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!