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

refactor(core): Remove unused Core::reset method

This commit is contained in:
Diadlo 2017-05-07 00:12:45 +03:00
parent c2f82f7808
commit 4664c6249a
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
2 changed files with 0 additions and 17 deletions

View File

@ -1457,19 +1457,3 @@ void Core::killTimers(bool onlyStop)
toxTimer = nullptr;
}
}
/**
* @brief Reinitialized the core.
* @warning Must be called from the Core thread, with the GUI thread ready to process events.
*/
void Core::reset()
{
assert(QThread::currentThread() == coreThread);
QByteArray toxsave = getToxSaveData();
ready = false;
killTimers(true);
deadifyTox();
emit selfAvatarChanged(QPixmap(":/img/contact_dark.svg"));
GUI::clearContacts();
start(toxsave);
}

View File

@ -78,7 +78,6 @@ public:
public slots:
void start(const QByteArray& savedata);
void reset();
void process();
void bootstrapDht();