aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/http_util
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2015-12-22 21:50:43 +0100
committerDaniel Neus <[email protected]>2015-12-22 21:50:43 +0100
commitaedb8d8ef646ed480296eb0a53513c74475cef08 (patch)
treeb57a9fc558d859baf39730278b7f56d881c31e6e /src/lib/utils/http_util
parenta589d7a2ede70871d3f563ed34cdd3c10046e5c2 (diff)
some trivial compiler/PVS-Studio warning fixes
Diffstat (limited to 'src/lib/utils/http_util')
-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);