[FWN] Remove deprecated scheduling code
This commit is contained in:
parent
3a9d0df75c
commit
9c0c588ed6
2 changed files with 1 additions and 8 deletions
|
|
@ -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__);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue