[FWN] Remove deprecated scheduling code

This commit is contained in:
Nathan Hourt 2015-08-19 11:31:57 -04:00
parent 3a9d0df75c
commit 9c0c588ed6
2 changed files with 1 additions and 8 deletions

View file

@ -16,16 +16,10 @@
BlockChain::BlockChain()
: chainThread(new fc::thread("chainThread")),
fcTaskScheduler(new QTimer(this)),
grapheneApp(new graphene::app::application),
webUsername(QStringLiteral("webui")),
webPassword(QString::fromStdString(fc::sha256::hash(fc::ecc::private_key::generate())))
{
fcTaskScheduler->setInterval(100);
fcTaskScheduler->setSingleShot(false);
connect(fcTaskScheduler, &QTimer::timeout, [] {fc::yield();});
fcTaskScheduler->start();
}
{}
BlockChain::~BlockChain() {
startFuture.cancel_and_wait(__FUNCTION__);

View file

@ -14,7 +14,6 @@ class BlockChain : public QObject {
Q_PROPERTY(QString webPassword MEMBER webPassword CONSTANT)
fc::thread* chainThread;
QTimer* fcTaskScheduler;
graphene::app::application* grapheneApp;
fc::future<void> startFuture;
QString webUsername;