aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-12-26 22:08:02 -0500
committerJack Lloyd <[email protected]>2015-12-26 22:08:02 -0500
commitfce8f2149757b6b234d89685e58db79ade27040a (patch)
tree8d718cc72ef23cdcf8d9f6a156ed3b61d1879e63 /src/lib/utils
parentc2515f7b098a5569cb97a134ffa83fc475cac07c (diff)
parent8b7a31fbfcbbd47f34f4f4edad4d05f25a9d0ecd (diff)
Merge pull request #378 from neusdan/warning_fixes
Some trivial compiler and PVS-Studio warning fixes
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/http_util/http_util.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/utils/http_util/http_util.cpp b/src/lib/utils/http_util/http_util.cpp
index 1f67c0b4b..6d4e7c8e8 100644
--- a/src/lib/utils/http_util/http_util.cpp
+++ b/src/lib/utils/http_util/http_util.cpp
@@ -98,7 +98,6 @@ Response http_sync(http_exch_fn http_transact,
const auto protocol_host_sep = url.find("://");
if(protocol_host_sep == std::string::npos)
throw Exception("Invalid URL " + url);
- const std::string protocol = url.substr(0, protocol_host_sep);
const auto host_loc_sep = url.find('/', protocol_host_sep + 3);