mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: remove unused variables
This commit is contained in:
parent
b609a8f99a
commit
c089c80e53
|
@ -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();
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user