Remove local variables that are not referenced
This commit is contained in:
@@ -951,8 +951,6 @@ QString CommandController::execCommand(const QString &textNoEmoji,
|
||||
}
|
||||
}
|
||||
|
||||
auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
|
||||
|
||||
{
|
||||
// check if user command exists
|
||||
const auto it = this->userCommands_.find(commandName);
|
||||
|
||||
@@ -113,7 +113,6 @@ void IrcMessageBuilder::addWords(const QStringList &words)
|
||||
continue;
|
||||
}
|
||||
|
||||
int pos = 0;
|
||||
int lastPos = 0;
|
||||
|
||||
while (i.hasNext())
|
||||
|
||||
@@ -312,7 +312,6 @@ void TwitchMessageBuilder::addWords(
|
||||
while (doesWordContainATwitchEmote(cursor, word, twitchEmotes,
|
||||
currentTwitchEmoteIt))
|
||||
{
|
||||
auto wordEnd = cursor + word.length();
|
||||
const auto ¤tTwitchEmote = *currentTwitchEmoteIt;
|
||||
|
||||
if (currentTwitchEmote.start == cursor)
|
||||
|
||||
@@ -71,7 +71,6 @@ QString fetchLogDirectorySize()
|
||||
|
||||
ModerationPage::ModerationPage()
|
||||
{
|
||||
auto app = getApp();
|
||||
LayoutCreator<ModerationPage> layoutCreator(this);
|
||||
|
||||
auto tabs = layoutCreator.emplace<QTabWidget>();
|
||||
|
||||
@@ -819,8 +819,6 @@ void SplitContainer::applyFromDescriptorRecursively(
|
||||
|
||||
bool vertical = containerNode.vertical_;
|
||||
|
||||
Direction direction = vertical ? Direction::Below : Direction::Right;
|
||||
|
||||
node->type_ =
|
||||
vertical ? Node::VerticalContainer : Node::HorizontalContainer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user