From 758b385aeff29f5206ce11766edba9100a9b0e6e Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 3 Jul 2021 20:54:27 +0200 Subject: [PATCH] AppContext: clean up interface --- src/appcontext.cpp | 12 ------------ src/appcontext.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/appcontext.cpp b/src/appcontext.cpp index a7c1dec..bed0101 100644 --- a/src/appcontext.cpp +++ b/src/appcontext.cpp @@ -2,7 +2,6 @@ // Copyright (c) 2020-2021, The Monero Project. #include -#include #include "appcontext.h" #include "constants.h" @@ -111,17 +110,6 @@ void AppContext::onCreateTransactionMultiDest(const QVector &addresses, emit initiateTransaction(); } -void AppContext::onSweepOutput(const QString &keyImage, QString address, bool churn, int outputs) { - if (churn) { - address = this->wallet->address(0, 0); // primary address - } - - qInfo() << "Creating transaction"; - this->wallet->createTransactionSingleAsync(keyImage, address, outputs, this->tx_priority); - - emit initiateTransaction(); -} - void AppContext::onSweepOutputs(const QVector &keyImages, QString address, bool churn, int outputs) { if (churn) { address = this->wallet->address(0, 0); diff --git a/src/appcontext.h b/src/appcontext.h index 39f9f6f..62b2a69 100644 --- a/src/appcontext.h +++ b/src/appcontext.h @@ -52,7 +52,6 @@ public slots: void onCreateTransaction(const QString &address, quint64 amount, const QString &description, bool all); void onCreateTransactionMultiDest(const QVector &addresses, const QVector &amounts, const QString &description); void onCancelTransaction(PendingTransaction *tx, const QVector &address); - void onSweepOutput(const QString &keyImage, QString address, bool churn, int outputs); void onSweepOutputs(const QVector &keyImages, QString address, bool churn, int outputs); void onCreateTransactionError(const QString &msg); void onOpenAliasResolve(const QString &openAlias);