From 311ae9b4d84b47c11f1e2ad8ade44fb43a9cb020 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 26 May 2016 15:25:24 +0930 Subject: [PATCH] daemon: remove unused functions. These were left over from when the state machine handled onchain transactions. Signed-off-by: Rusty Russell --- daemon/peer.c | 21 --------------------- state.h | 12 ------------ 2 files changed, 33 deletions(-) diff --git a/daemon/peer.c b/daemon/peer.c index e75f63aa1..97e56e56a 100644 --- a/daemon/peer.c +++ b/daemon/peer.c @@ -1802,13 +1802,6 @@ const struct bitcoin_tx *bitcoin_spend_ours(struct peer *peer) return tx; } -/* Create a bitcoin steal tx (to steal all their commit's outputs) */ -const struct bitcoin_tx *bitcoin_steal(const struct peer *peer, - struct commit_info *ci) -{ - FIXME_STUB(peer); -} - /* Sign and return our commit tx */ const struct bitcoin_tx *bitcoin_commit(struct peer *peer) { @@ -1831,20 +1824,6 @@ const struct bitcoin_tx *bitcoin_commit(struct peer *peer) return peer->us.commit->tx; } -/* Create a HTLC refund collection */ -const struct bitcoin_tx *bitcoin_htlc_timeout(const struct peer *peer, - const struct htlc_onchain *htlc_onchain) -{ - FIXME_STUB(peer); -} - -/* Create a HTLC collection */ -const struct bitcoin_tx *bitcoin_htlc_spend(const struct peer *peer, - const struct htlc_onchain *htlc_onchain) -{ - FIXME_STUB(peer); -} - /* Now we can create anchor tx. */ static void got_feerate(struct lightningd_state *dstate, u64 rate, struct peer *peer) diff --git a/state.h b/state.h index d6e899f07..c3d81c3af 100644 --- a/state.h +++ b/state.h @@ -175,19 +175,7 @@ const struct bitcoin_tx *bitcoin_close(struct peer *peer); /* Create a bitcoin spend tx (to spend our commit's outputs) */ const struct bitcoin_tx *bitcoin_spend_ours(struct peer *peer); -/* Create a bitcoin steal tx (to steal all their commit's outputs) */ -const struct bitcoin_tx *bitcoin_steal(const struct peer *peer, - struct commit_info *ci); - /* Create our commit tx */ const struct bitcoin_tx *bitcoin_commit(struct peer *peer); -/* Create a HTLC refund collection */ -const struct bitcoin_tx *bitcoin_htlc_timeout(const struct peer *peer, - const struct htlc_onchain *htlc_onchain); - -/* Create a HTLC collection */ -const struct bitcoin_tx *bitcoin_htlc_spend(const struct peer *peer, - const struct htlc_onchain *htlc_onchain); - #endif /* LIGHTNING_STATE_H */