From 9cdc7f498d07e12e8f9f6bf897ee7ca0e4bf4787 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Wed, 11 Mar 2020 10:12:29 -0400 Subject: [PATCH] remove dead code --- llarp/nodedb.cpp | 7 ------- llarp/nodedb.hpp | 4 ---- 2 files changed, 11 deletions(-) diff --git a/llarp/nodedb.cpp b/llarp/nodedb.cpp index 38d0ca3f78..5f78f84d5f 100644 --- a/llarp/nodedb.cpp +++ b/llarp/nodedb.cpp @@ -525,13 +525,6 @@ llarp_nodedb::select_random_exit(llarp::RouterContact &result) return false; } -bool -llarp_nodedb::select_random_hop(const llarp::RouterContact &prev, - llarp::RouterContact &result, size_t N) -{ - (void)N; - return select_random_hop_excluding(result, {prev.pubkey}); -} bool llarp_nodedb::select_random_hop_excluding( diff --git a/llarp/nodedb.hpp b/llarp/nodedb.hpp index 90c959a5dd..90790e4603 100644 --- a/llarp/nodedb.hpp +++ b/llarp/nodedb.hpp @@ -154,10 +154,6 @@ struct llarp_nodedb bool select_random_exit(llarp::RouterContact &rc) EXCLUDES(access); - bool - select_random_hop(const llarp::RouterContact &prev, - llarp::RouterContact &result, size_t N) EXCLUDES(access); - bool select_random_hop_excluding(llarp::RouterContact &result, const std::set< llarp::RouterID > &exclude)