Revert "Add [overlay] configuration section (experimental):"

This reverts commit 856fd9d69f.
This commit is contained in:
Vinnie Falco
2014-10-23 13:48:52 -07:00
parent 5a212cd626
commit ab1f36c565
4 changed files with 17 additions and 107 deletions

View File

@@ -71,17 +71,6 @@ OverlayImpl::OverlayImpl (Stoppable& parent,
, m_resolver (resolver)
, m_nextShortId (0)
{
auto const& section = getConfig()["overlay"];
set (setup_.use_handshake, "use_handshake", section);
set (setup_.auto_connect, "auto_connect", section);
std::string promote;
set (promote, "become_superpeer", section);
if (promote == "never")
setup_.promote = Promote::never;
else if (promote == "always")
setup_.promote = Promote::always;
else
setup_.promote = Promote::automatic;
}
OverlayImpl::~OverlayImpl ()
@@ -94,12 +83,6 @@ OverlayImpl::~OverlayImpl ()
return this->m_child_count == 0; });
}
OverlayImpl::Setup const&
OverlayImpl::setup() const
{
return setup_;
}
void
OverlayImpl::accept (socket_type&& socket)
{
@@ -453,10 +436,10 @@ OverlayImpl::getActivePeers ()
ret.reserve (m_publicKeyMap.size ());
for (auto const& e : m_publicKeyMap)
for (auto const& pair : m_publicKeyMap)
{
assert (e.second);
ret.push_back (e.second);
assert (pair.second);
ret.push_back (pair.second);
}
return ret;