mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Removed unused signal in TwitchChannel.
This commit is contained in:
parent
3e268637f0
commit
e13d927a4e
|
@ -89,7 +89,6 @@ TwitchChannel::TwitchChannel(const QString &name,
|
|||
{
|
||||
log("[TwitchChannel:{}] Opened", name);
|
||||
|
||||
this->tabHighlightRequested.connect([](HighlightState state) {});
|
||||
this->liveStatusChanged.connect([this]() {
|
||||
if (this->isLive() == 1) {
|
||||
}
|
||||
|
|
|
@ -92,7 +92,6 @@ public:
|
|||
pajlada::Signals::NoArgSignal userStateChanged;
|
||||
pajlada::Signals::NoArgSignal liveStatusChanged;
|
||||
pajlada::Signals::NoArgSignal roomModesChanged;
|
||||
pajlada::Signals::Signal<HighlightState> tabHighlightRequested;
|
||||
|
||||
protected:
|
||||
void addRecentChatter(const MessagePtr &message) override;
|
||||
|
|
|
@ -552,11 +552,7 @@ void ChannelView::setChannel(ChannelPtr newChannel)
|
|||
this->queueUpdate();
|
||||
|
||||
// Notifications
|
||||
TwitchChannel *tc = dynamic_cast<TwitchChannel *>(newChannel.get());
|
||||
if (tc != nullptr) {
|
||||
tc->tabHighlightRequested.connect([this](HighlightState state) {
|
||||
this->tabHighlightRequested.invoke(state);
|
||||
});
|
||||
if (auto tc = dynamic_cast<TwitchChannel *>(newChannel.get())) {
|
||||
tc->liveStatusChanged.connect([this]() {
|
||||
this->liveStatusChanged.invoke(); //
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue