Skip to content

Commit 63706dc

Browse files
committed
f remove now-uneccessary setters
1 parent 5f3d241 commit 63706dc

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

lightning/src/routing/scoring.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -755,32 +755,6 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ProbabilisticScorerU
755755
}
756756
None
757757
}
758-
759-
/// Marks the node with the given `node_id` as banned, i.e.,
760-
/// it will be avoided during path finding.
761-
pub fn add_banned(&mut self, node_id: &NodeId) {
762-
self.params.manual_node_penalties.insert(*node_id, u64::max_value());
763-
}
764-
765-
/// Removes the node with the given `node_id` from the list of nodes to avoid.
766-
pub fn remove_banned(&mut self, node_id: &NodeId) {
767-
self.params.manual_node_penalties.remove(node_id);
768-
}
769-
770-
/// Sets a manual penalty for the given node.
771-
pub fn set_manual_penalty(&mut self, node_id: &NodeId, penalty: u64) {
772-
self.params.manual_node_penalties.insert(*node_id, penalty);
773-
}
774-
775-
/// Removes the node with the given `node_id` from the list of manual penalties.
776-
pub fn remove_manual_penalty(&mut self, node_id: &NodeId) {
777-
self.params.manual_node_penalties.remove(node_id);
778-
}
779-
780-
/// Clears the list of manual penalties that are applied during path finding.
781-
pub fn clear_manual_penalties(&mut self) {
782-
self.params.manual_node_penalties = HashMap::new();
783-
}
784758
}
785759

786760
impl ProbabilisticScoringParameters {

0 commit comments

Comments
 (0)