Remove dead code (AbstractRouter::EnsureRouter())

pull/1066/head
Stephen Shelton 4 years ago
parent 51e4b47cf8
commit fba12093ac
No known key found for this signature in database
GPG Key ID: 09082714F73FAA22

@ -1,15 +1,2 @@
#include <router/abstractrouter.hpp>
#include <nodedb.hpp>
namespace llarp
{
void
AbstractRouter::EnsureRouter(RouterID router, RouterLookupHandler handler)
{
std::vector< RouterContact > found(1);
if(nodedb()->Get(router, found[0]))
handler(found);
else
LookupRouter(router, handler);
}
} // namespace llarp

@ -250,9 +250,6 @@ namespace llarp
virtual util::StatusObject
ExtractStatus() const = 0;
void
EnsureRouter(RouterID router, RouterLookupHandler handler);
};
} // namespace llarp

Loading…
Cancel
Save