From 5c18b5a042ef823ab279885e2fbaceaab7885d5e Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Fri, 14 Jun 2024 18:34:09 -0400 Subject: [PATCH] routing: remove un-used method from routingGraph interface We really want to narrow down the interface we provide the router, so let's start here. --- routing/graph.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/routing/graph.go b/routing/graph.go index 3e466a3df..dafadb892 100644 --- a/routing/graph.go +++ b/routing/graph.go @@ -23,11 +23,6 @@ type routingGraph interface { // fetchNodeFeatures returns the features of the given node. fetchNodeFeatures(nodePub route.Vertex) (*lnwire.FeatureVector, error) - - // FetchAmountPairCapacity determines the maximal capacity between two - // pairs of nodes. - FetchAmountPairCapacity(nodeFrom, nodeTo route.Vertex, - amount lnwire.MilliSatoshi) (btcutil.Amount, error) } // CachedGraph is a routingGraph implementation that retrieves from the @@ -97,8 +92,6 @@ func (g *CachedGraph) fetchNodeFeatures(nodePub route.Vertex) ( // FetchAmountPairCapacity determines the maximal public capacity between two // nodes depending on the amount we try to send. -// -// NOTE: Part of the routingGraph interface. func (g *CachedGraph) FetchAmountPairCapacity(nodeFrom, nodeTo route.Vertex, amount lnwire.MilliSatoshi) (btcutil.Amount, error) {