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

refactor(audio): completely remove Audio class dependency from Core

The Audio singleton instance initializes itself on startup. No need for an extra call.
This commit is contained in:
Nils Fenner 2016-04-23 21:17:07 +02:00 committed by sudden6
parent 98d513990e
commit e5c7b3a4f6
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -25,7 +25,6 @@
#include "src/core/coreav.h"
#include "src/persistence/settings.h"
#include "src/widget/gui.h"
#include "src/audio/audio.h"
#include "src/persistence/profilelocker.h"
#include "src/net/avatarbroadcaster.h"
#include "src/persistence/profile.h"
@ -64,9 +63,6 @@ Core::Core(QThread *CoreThread, Profile& profile) :
{
coreThread = CoreThread;
Audio::getInstance();
toxTimer = new QTimer(this);
toxTimer->setSingleShot(true);
connect(toxTimer, &QTimer::timeout, this, &Core::process);