mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
avoid explicit check if strings are_equal_without_hilites in are_equal_with_hilites
if anyone needs it, they can call it themselves
This commit is contained in:
parent
0a021d3378
commit
f6db4fa466
@ -48,9 +48,6 @@ String remove_hilites(std::string_view string)
|
||||
*/
|
||||
bool are_equal_with_hilites(std::string_view left, std::string_view right)
|
||||
{
|
||||
if (!are_equal_with_hilites_removed(left, right))
|
||||
return false;
|
||||
|
||||
const char * left_it = left.begin();
|
||||
const char * right_it = right.begin();
|
||||
Hilite left_hilite = DB::IAST::hilite_none;
|
||||
@ -70,7 +67,6 @@ bool are_equal_with_hilites(std::string_view left, std::string_view right)
|
||||
|
||||
// Lookup one character.
|
||||
// Check characters match.
|
||||
// Redundant check, given the hilite-ignorant comparison at the beginning, but let's keep it just in case.
|
||||
if (*left_it != *right_it)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user