diff --git a/src/controller.cpp b/src/controller.cpp index 90087c2..f7b6561 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -820,61 +820,6 @@ void Controller::shutdownZcashd() { } } - -// // Fetch the Z-board topics list -// void Controller::getZboardTopics(std::function)> cb) { -// if (!zrpc->haveConnection()) -// return noConnection(); - -// QUrl cmcURL("http://z-board.net/listTopics"); - -// QNetworkRequest req; -// req.setUrl(cmcURL); - -// QNetworkReply *reply = conn->restclient->get(req); - -// QObject::connect(reply, &QNetworkReply::finished, [=] { -// reply->deleteLater(); - -// try { -// if (reply->error() != QNetworkReply::NoError) { -// auto parsed = json::parse(reply->readAll(), nullptr, false); -// if (!parsed.is_discarded() && !parsed["error"]["message"].is_null()) { -// qDebug() << QString::fromStdString(parsed["error"]["message"]); -// } -// else { -// qDebug() << reply->errorString(); -// } -// return; -// } - -// auto all = reply->readAll(); - -// auto parsed = json::parse(all, nullptr, false); -// if (parsed.is_discarded()) { -// return; -// } - -// QMap topics; -// for (const json& item : parsed["topics"].get()) { -// if (item.find("addr") == item.end() || item.find("topicName") == item.end()) -// return; - -// QString addr = QString::fromStdString(item["addr"].get()); -// QString topic = QString::fromStdString(item["topicName"].get()); - -// topics.insert(topic, addr); -// } - -// cb(topics); -// } -// catch (...) { -// // If anything at all goes wrong, just set the price to 0 and move on. -// qDebug() << QString("Caught something nasty"); -// } -// }); -// } - /** * Get a Sapling address from the user's wallet */