Revert "Fix build errors"

This reverts commit 51804f0504.
This commit is contained in:
A.J. Beamon 2018-03-06 10:28:39 -08:00
parent f2c804e14f
commit 7f8f655b9c
1 changed files with 6 additions and 10 deletions

View File

@ -129,19 +129,15 @@ struct LogSystemConfig {
std::vector<std::pair<UID, NetworkAddress>> allSharedLogs() const {
typedef std::pair<UID, NetworkAddress> IdAddrPair;
std::vector<IdAddrPair> results;
for (auto &tLogSet : tLogs) {
for (auto &tLog : tLogSet.tLogs) {
if (tLog.present())
results.push_back(IdAddrPair(tLog.interf().getSharedTLogID(), tLog.interf().address()));
}
for (auto &tLog : tLogs) {
if (tLog.present())
results.push_back(IdAddrPair(tLog.interf().getSharedTLogID(), tLog.interf().address()));
}
for (auto &oldLog : oldTLogs) {
for (auto &tLogSet : oldLog.tLogs) {
for (auto &tLog : tLogSet.tLogs) {
if (tLog.present())
results.push_back(IdAddrPair(tLog.interf().getSharedTLogID(), tLog.interf().address()));
}
for (auto &tLog : oldLog.tLogs) {
if (tLog.present())
results.push_back(IdAddrPair(tLog.interf().getSharedTLogID(), tLog.interf().address()));
}
}
uniquify(results);