From 3e1755ee994e17ad0b9657e6d7bfb7f15e991ee5 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 2 Oct 2020 13:54:22 +0200 Subject: [PATCH] autopilot: remove unimpleneted SpliceIn/Out methods --- autopilot/agent_test.go | 16 ---------------- autopilot/interface.go | 10 ---------- pilot.go | 8 -------- 3 files changed, 34 deletions(-) diff --git a/autopilot/agent_test.go b/autopilot/agent_test.go index 9cc9366e..4828e7d5 100644 --- a/autopilot/agent_test.go +++ b/autopilot/agent_test.go @@ -139,14 +139,6 @@ func (m *mockChanController) OpenChannel(target *btcec.PublicKey, func (m *mockChanController) CloseChannel(chanPoint *wire.OutPoint) error { return nil } -func (m *mockChanController) SpliceIn(chanPoint *wire.OutPoint, - amt btcutil.Amount) (*Channel, error) { - return nil, nil -} -func (m *mockChanController) SpliceOut(chanPoint *wire.OutPoint, - amt btcutil.Amount) (*Channel, error) { - return nil, nil -} var _ ChannelController = (*mockChanController)(nil) @@ -391,14 +383,6 @@ func (m *mockFailingChanController) OpenChannel(target *btcec.PublicKey, func (m *mockFailingChanController) CloseChannel(chanPoint *wire.OutPoint) error { return nil } -func (m *mockFailingChanController) SpliceIn(chanPoint *wire.OutPoint, - amt btcutil.Amount) (*Channel, error) { - return nil, nil -} -func (m *mockFailingChanController) SpliceOut(chanPoint *wire.OutPoint, - amt btcutil.Amount) (*Channel, error) { - return nil, nil -} var _ ChannelController = (*mockFailingChanController)(nil) diff --git a/autopilot/interface.go b/autopilot/interface.go index 04de98f9..a443a471 100644 --- a/autopilot/interface.go +++ b/autopilot/interface.go @@ -211,14 +211,4 @@ type ChannelController interface { // // TODO(roasbeef): add force option? CloseChannel(chanPoint *wire.OutPoint) error - - // SpliceIn attempts to add additional funds to the target channel via - // a splice in mechanism. The new channel with an updated capacity - // should be returned. - SpliceIn(chanPoint *wire.OutPoint, amt btcutil.Amount) (*Channel, error) - - // SpliceOut attempts to remove funds from an existing channels using a - // splice out mechanism. The removed funds from the channel should be - // returned to an output under the control of the backing wallet. - SpliceOut(chanPoint *wire.OutPoint, amt btcutil.Amount) (*Channel, error) } diff --git a/pilot.go b/pilot.go index 1078a43d..03ef225f 100644 --- a/pilot.go +++ b/pilot.go @@ -124,14 +124,6 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey, func (c *chanController) CloseChannel(chanPoint *wire.OutPoint) error { return nil } -func (c *chanController) SpliceIn(chanPoint *wire.OutPoint, - amt btcutil.Amount) (*autopilot.Channel, error) { - return nil, nil -} -func (c *chanController) SpliceOut(chanPoint *wire.OutPoint, - amt btcutil.Amount) (*autopilot.Channel, error) { - return nil, nil -} // A compile time assertion to ensure chanController meets the // autopilot.ChannelController interface.