Browse Source

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

reviewable/pr4372/r2
Diadlo 8 years ago
parent
commit
4664c6249a
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 16
      src/core/core.cpp
  2. 1
      src/core/core.h

16
src/core/core.cpp

@ -1457,19 +1457,3 @@ void Core::killTimers(bool onlyStop) @@ -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);
}

1
src/core/core.h

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

Loading…
Cancel
Save