From 63cdaec0babb2cf79e32d636e222c5bc40ee1876 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Thu, 10 Oct 2013 13:14:06 -0500 Subject: [PATCH] removes unused variable set per static analysis --- websocketpp/uri.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/websocketpp/uri.hpp b/websocketpp/uri.hpp index 2bfa1f7ceb..e3eb480370 100644 --- a/websocketpp/uri.hpp +++ b/websocketpp/uri.hpp @@ -138,10 +138,13 @@ public: std::string port = ""; while (state == 1) { if (it == uri.end()) { - state = 3; + // state is not used after this point presently. + // this should be re-enabled if it ever is needed in a future + // refactoring + //state = 3; break; } else if (*it == '/') { - state = 3; + //state = 3; } else { port += *it; }