small refactor

This commit is contained in:
fourtf
2018-11-14 17:26:08 +01:00
parent 0f9ef9d0aa
commit d8fcc1a3ed
10 changed files with 106 additions and 128 deletions
+2 -8
View File
@@ -1,8 +1,8 @@
#include "widgets/splits/Split.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "common/Common.hpp"
#include "common/NetworkRequest.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "debug/Log.hpp"
#include "providers/twitch/EmoteValue.hpp"
#include "providers/twitch/TwitchChannel.hpp"
@@ -106,7 +106,7 @@ Split::Split(QWidget *parent)
// CTRL+F: Search
createShortcut(this, "CTRL+F", &Split::showSearch);
// F5: reload emotes
// F5: reload emotes
createShortcut(this, "F5", &Split::reloadChannelAndSubscriberEmotes);
// F12
@@ -320,11 +320,6 @@ void Split::showChangeChannelPopup(const char *dialogTitle, bool empty,
this->selectChannelDialog_ = dialog;
}
void Split::layoutMessages()
{
this->view_->queueLayout();
}
void Split::updateGifEmotes()
{
this->view_->queueUpdate();
@@ -659,7 +654,6 @@ void Split::reloadChannelAndSubscriberEmotes()
twitchChannel->refreshChannelEmotes();
}
template <typename Iter, typename RandomGenerator>
static Iter select_randomly(Iter start, Iter end, RandomGenerator &g)
{