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:
natasha 2023-04-04 15:00:14 +01:00
parent 0a021d3378
commit f6db4fa466

View File

@ -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;