mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Removed useless code [#CLICKHOUSE-2].
This commit is contained in:
parent
01e8adbfff
commit
a7d4fef0d2
2
contrib/poco
vendored
2
contrib/poco
vendored
@ -1 +1 @@
|
||||
Subproject commit e30352c2c24eebecbd82d41f7054d908ac7fdc37
|
||||
Subproject commit 4746a846952808f220595602f67831516822dc13
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user