Remove local variables that are not referenced

This commit is contained in:
mmb L 2021-11-27 21:27:01 +08:00 committed by pajlada
parent 7d350adfeb
commit ec966a1791
5 changed files with 0 additions and 7 deletions

View file

@ -951,8 +951,6 @@ QString CommandController::execCommand(const QString &textNoEmoji,
} }
} }
auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
{ {
// check if user command exists // check if user command exists
const auto it = this->userCommands_.find(commandName); const auto it = this->userCommands_.find(commandName);

View file

@ -113,7 +113,6 @@ void IrcMessageBuilder::addWords(const QStringList &words)
continue; continue;
} }
int pos = 0;
int lastPos = 0; int lastPos = 0;
while (i.hasNext()) while (i.hasNext())

View file

@ -312,7 +312,6 @@ void TwitchMessageBuilder::addWords(
while (doesWordContainATwitchEmote(cursor, word, twitchEmotes, while (doesWordContainATwitchEmote(cursor, word, twitchEmotes,
currentTwitchEmoteIt)) currentTwitchEmoteIt))
{ {
auto wordEnd = cursor + word.length();
const auto &currentTwitchEmote = *currentTwitchEmoteIt; const auto &currentTwitchEmote = *currentTwitchEmoteIt;
if (currentTwitchEmote.start == cursor) if (currentTwitchEmote.start == cursor)

View file

@ -71,7 +71,6 @@ QString fetchLogDirectorySize()
ModerationPage::ModerationPage() ModerationPage::ModerationPage()
{ {
auto app = getApp();
LayoutCreator<ModerationPage> layoutCreator(this); LayoutCreator<ModerationPage> layoutCreator(this);
auto tabs = layoutCreator.emplace<QTabWidget>(); auto tabs = layoutCreator.emplace<QTabWidget>();

View file

@ -819,8 +819,6 @@ void SplitContainer::applyFromDescriptorRecursively(
bool vertical = containerNode.vertical_; bool vertical = containerNode.vertical_;
Direction direction = vertical ? Direction::Below : Direction::Right;
node->type_ = node->type_ =
vertical ? Node::VerticalContainer : Node::HorizontalContainer; vertical ? Node::VerticalContainer : Node::HorizontalContainer;