From 0d54fae37b1fd3d37e27c48cd3730c83e55fabb2 Mon Sep 17 00:00:00 2001 From: Pavel Karelin Date: Wed, 18 Jul 2018 15:23:23 +0300 Subject: [PATCH] chore: Fix warnings: remove unused variables --- src/widget/friendwidget.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/widget/friendwidget.cpp b/src/widget/friendwidget.cpp index 878e5630b..98cea27ca 100644 --- a/src/widget/friendwidget.cpp +++ b/src/widget/friendwidget.cpp @@ -133,7 +133,6 @@ void FriendWidget::onContextMenuCalled(QContextMenuEvent* event) }); } - const auto& s = Settings::getInstance(); const auto circleId = chatroom->getCircleId(); auto circleMenu = menu.addMenu(tr("Move to circle...", "Menu to move a friend into a different circle")); @@ -280,9 +279,6 @@ void FriendWidget::moveToCircle(int newCircleId) void FriendWidget::changeAutoAccept(bool enable) { - const auto frnd = chatroom->getFriend(); - const auto pk = frnd->getPublicKey(); - auto& s = Settings::getInstance(); if (enable) { const auto oldDir = chatroom->getAutoAcceptDir(); const auto newDir = QFileDialog::getExistingDirectory(