Remove get_shortcut_it(const string &name).
This commit is contained in:
parent
eaba45ebcb
commit
e91b946015
@ -1438,15 +1438,6 @@ vector<unique_ptr<QuickReplyManager::Shortcut>>::iterator QuickReplyManager::get
|
||||
return shortcuts_.shortcuts_.end();
|
||||
}
|
||||
|
||||
vector<unique_ptr<QuickReplyManager::Shortcut>>::iterator QuickReplyManager::get_shortcut_it(const string &name) {
|
||||
for (auto it = shortcuts_.shortcuts_.begin(); it != shortcuts_.shortcuts_.end(); ++it) {
|
||||
if ((*it)->name_ == name) {
|
||||
return it;
|
||||
}
|
||||
}
|
||||
return shortcuts_.shortcuts_.end();
|
||||
}
|
||||
|
||||
vector<unique_ptr<QuickReplyManager::QuickReplyMessage>>::iterator QuickReplyManager::get_message_it(
|
||||
Shortcut *s, MessageId message_id) {
|
||||
CHECK(s != nullptr);
|
||||
|
@ -223,8 +223,6 @@ class QuickReplyManager final : public Actor {
|
||||
|
||||
vector<unique_ptr<Shortcut>>::iterator get_shortcut_it(QuickReplyShortcutId shortcut_id);
|
||||
|
||||
vector<unique_ptr<Shortcut>>::iterator get_shortcut_it(const string &name);
|
||||
|
||||
vector<unique_ptr<QuickReplyMessage>>::iterator get_message_it(Shortcut *s, MessageId message_id);
|
||||
|
||||
bool is_shortcut_list_changed(const vector<unique_ptr<Shortcut>> &new_shortcuts) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user