gui(transactions): remove unused list_coins
This commit is contained in:
parent
21f87047ac
commit
685f83bd0e
@ -249,7 +249,6 @@ impl State for TransactionsPanel {
|
||||
self.selected_tx = None;
|
||||
let daemon1 = daemon.clone();
|
||||
let daemon2 = daemon.clone();
|
||||
let daemon3 = daemon.clone();
|
||||
let now: u32 = SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.unwrap()
|
||||
@ -258,7 +257,7 @@ impl State for TransactionsPanel {
|
||||
.unwrap();
|
||||
Command::batch(vec![
|
||||
Command::perform(
|
||||
async move { daemon3.list_pending_txs().map_err(|e| e.into()) },
|
||||
async move { daemon2.list_pending_txs().map_err(|e| e.into()) },
|
||||
Message::PendingTransactions,
|
||||
),
|
||||
Command::perform(
|
||||
@ -269,15 +268,6 @@ impl State for TransactionsPanel {
|
||||
},
|
||||
Message::HistoryTransactions,
|
||||
),
|
||||
Command::perform(
|
||||
async move {
|
||||
daemon2
|
||||
.list_coins(&[], &[])
|
||||
.map(|res| res.coins)
|
||||
.map_err(|e| e.into())
|
||||
},
|
||||
Message::Coins,
|
||||
),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user