SL-19951 Delete unused code

master
Alexander Gavriliuk 2023-07-06 11:17:20 +02:00
parent deb394e207
commit 4abecaa04b
2 changed files with 0 additions and 9 deletions

View File

@ -389,11 +389,6 @@ void LLFloaterEmojiPicker::fillEmojiGrid()
}
}
bool LLFloaterEmojiPicker::matchesCategory(const LLEmojiDescriptor* descr)
{
return std::find(descr->Categories.begin(), descr->Categories.end(), mSelectedCategory) != descr->Categories.end();
}
bool LLFloaterEmojiPicker::matchesPattern(const LLEmojiDescriptor* descr)
{
if (descr->Name.find(mSearchPattern) != std::string::npos)
@ -401,9 +396,6 @@ bool LLFloaterEmojiPicker::matchesPattern(const LLEmojiDescriptor* descr)
for (const std::string& shortCode : descr->ShortCodes)
if (shortCode.find(mSearchPattern) != std::string::npos)
return true;
for (const std::string& category : descr->Categories)
if (category.find(mSearchPattern) != std::string::npos)
return true;
return false;
}

View File

@ -57,7 +57,6 @@ public:
private:
void fillEmojiGrid();
bool matchesCategory(const LLEmojiDescriptor* descr);
bool matchesPattern(const LLEmojiDescriptor* descr);
void onCategoryCommit();