Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
zetok committed Oct 8, 2017
1 parent b609a8f commit c089c80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/audio/backend/openal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ bool OpenAL::initInput(const QString& deviceName, uint32_t channels)
int stereoFlag = AUDIO_CHANNELS == 1 ? AL_FORMAT_MONO16 : AL_FORMAT_STEREO16;
const uint32_t sampleRate = AUDIO_SAMPLE_RATE;
const uint16_t frameDuration = AUDIO_FRAME_DURATION;
const uint32_t chnls = AUDIO_CHANNELS;
const ALCsizei bufSize = (frameDuration * sampleRate * 4) / 1000 * channels;

const QByteArray qDevName = deviceName.toUtf8();
Expand Down
5 changes: 1 addition & 4 deletions src/widget/contentdialog.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright © 2015 by The qTox Project Contributors
Copyright © 2015-2017 by The qTox Project Contributors
This file is part of qTox, a Qt-based graphical interface for Tox.
Expand Down Expand Up @@ -190,7 +190,6 @@ GroupWidget* ContentDialog::addGroup(int groupId, const QString& name)
GroupWidget* groupWidget = new GroupWidget(groupId, name, compact);
groupLayout.addSortedWidget(groupWidget);

Group* group = groupWidget->getGroup();
connect(groupWidget, &GroupWidget::chatroomWidgetClicked, this, &ContentDialog::activate);
connect(groupWidget, &FriendWidget::newWindowOpened, this, &ContentDialog::openNewDialog);

Expand Down Expand Up @@ -240,8 +239,6 @@ void ContentDialog::removeFriend(int friendId)

void ContentDialog::removeGroup(int groupId)
{
Group* group = GroupList::findGroup(groupId);

auto iter = groupList.find(groupId);
if (iter == groupList.end()) {
return;
Expand Down

0 comments on commit c089c80

Please sign in to comment.