summaryrefslogtreecommitdiffstats
path: root/net/websockets
diff options
context:
space:
mode:
authorpph34r@gmail.com <pph34r@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-02 14:38:05 +0000
committerpph34r@gmail.com <pph34r@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-02 14:38:05 +0000
commit7c75b4ce3dab78609129944ee91131e62ca36085 (patch)
tree7b667951f46397fafc6f6a187ebf5f258e4e3593 /net/websockets
parent894f634cee519f550410ee9bd98f76a3bd956736 (diff)
downloadchromium_src-7c75b4ce3dab78609129944ee91131e62ca36085.zip
chromium_src-7c75b4ce3dab78609129944ee91131e62ca36085.tar.gz
chromium_src-7c75b4ce3dab78609129944ee91131e62ca36085.tar.bz2
GCC 4.6 -Wunused-but-set-variable cleanup.
BUG=87490 TEST=net_unittests Review URL: http://codereview.chromium.org/7261018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/websockets')
-rw-r--r--net/websockets/websocket_handshake_handler.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/websockets/websocket_handshake_handler.cc b/net/websockets/websocket_handshake_handler.cc
index 2e62a18..4a424ca 100644
--- a/net/websockets/websocket_handshake_handler.cc
+++ b/net/websockets/websocket_handshake_handler.cc
@@ -226,9 +226,7 @@ HttpRequestInfo WebSocketHandshakeRequestHandler::GetRequestInfo(
const GURL& url, std::string* challenge) {
HttpRequestInfo request_info;
request_info.url = url;
- base::StringPiece method = status_line_.data();
- size_t method_end = base::StringPiece(
- status_line_.data(), status_line_.size()).find_first_of(" ");
+ size_t method_end = base::StringPiece(status_line_).find_first_of(" ");
if (method_end != base::StringPiece::npos)
request_info.method = std::string(status_line_.data(), method_end);