Removed useless code [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-11-20 07:22:21 +03:00
parent 01e8adbfff
commit a7d4fef0d2
3 changed files with 2 additions and 9 deletions

2
contrib/poco vendored

@ -1 +1 @@
Subproject commit e30352c2c24eebecbd82d41f7054d908ac7fdc37
Subproject commit 4746a846952808f220595602f67831516822dc13

View File

@ -3,10 +3,3 @@
#include <string_view>
using StringView = std::string_view;
/// It creates StringView from literal constant at compile time.
template <typename TChar, size_t size>
constexpr inline std::basic_string_view<TChar> makeStringView(const TChar (&str)[size])
{
return std::basic_string_view<TChar>(str, size - 1);
}

View File

@ -64,7 +64,7 @@ static size_t decodeURL(const char * src, size_t src_size, char * dst)
size_t ExtractProtocol::getReserveLengthForElement()
{
return makeStringView("https").size() + 1;
return strlen("https") + 1;
}