graph: remove unused ForEachNode method from Builder

And from various interfaces where it is not needed.
This commit is contained in:
Elle Mouton
2025-02-05 11:29:07 +02:00
parent ce8cde6911
commit 7cf5b5be02
2 changed files with 0 additions and 21 deletions

View File

@ -1555,18 +1555,6 @@ func (b *Builder) FetchLightningNode(
return b.cfg.Graph.FetchLightningNode(node)
}
// ForEachNode is used to iterate over every node in router topology.
//
// NOTE: This method is part of the ChannelGraphSource interface.
func (b *Builder) ForEachNode(
cb func(*models.LightningNode) error) error {
return b.cfg.Graph.ForEachNode(
func(_ kvdb.RTx, n *models.LightningNode) error {
return cb(n)
})
}
// ForAllOutgoingChannels is used to iterate over all outgoing channels owned by
// the router.
//