1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore: Fix warnings: remove unused variables

This commit is contained in:
Pavel Karelin 2018-07-18 15:23:23 +03:00
parent 66fe7f2852
commit 0d54fae37b

View File

@ -133,7 +133,6 @@ void FriendWidget::onContextMenuCalled(QContextMenuEvent* event)
}); });
} }
const auto& s = Settings::getInstance();
const auto circleId = chatroom->getCircleId(); const auto circleId = chatroom->getCircleId();
auto circleMenu = auto circleMenu =
menu.addMenu(tr("Move to circle...", "Menu to move a friend into a different circle")); 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) void FriendWidget::changeAutoAccept(bool enable)
{ {
const auto frnd = chatroom->getFriend();
const auto pk = frnd->getPublicKey();
auto& s = Settings::getInstance();
if (enable) { if (enable) {
const auto oldDir = chatroom->getAutoAcceptDir(); const auto oldDir = chatroom->getAutoAcceptDir();
const auto newDir = QFileDialog::getExistingDirectory( const auto newDir = QFileDialog::getExistingDirectory(