diff --git a/routing/router.go b/routing/router.go index 36d098fc4..c0578c564 100644 --- a/routing/router.go +++ b/routing/router.go @@ -157,11 +157,6 @@ type ChannelGraphSource interface { // ForEachNode is used to iterate over every node in the known graph. ForEachNode(func(node *channeldb.LightningNode) error) error - - // ForEachChannel is used to iterate over every channel in the known - // graph. - ForEachChannel(func(chanInfo *channeldb.ChannelEdgeInfo, - e1, e2 *channeldb.ChannelEdgePolicy) error) error } // PaymentAttemptDispatcher is used by the router to send payment attempts onto @@ -2541,16 +2536,6 @@ func (r *ChannelRouter) ForAllOutgoingChannels(cb func(kvdb.RTx, }) } -// ForEachChannel is used to iterate over every known edge (channel) within our -// view of the channel graph. -// -// NOTE: This method is part of the ChannelGraphSource interface. -func (r *ChannelRouter) ForEachChannel(cb func(chanInfo *channeldb.ChannelEdgeInfo, - e1, e2 *channeldb.ChannelEdgePolicy) error) error { - - return r.cfg.Graph.ForEachChannel(cb) -} - // AddProof updates the channel edge info with proof which is needed to // properly announce the edge to the rest of the network. //