summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-30 10:48:09 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-30 10:48:09 -0800
commitfa2bb91ae5515ef18ed662896b83d654d659e9f1 (patch)
tree3a87ba96e1ed1e24f31f8cd1d853cef6ccd90f60
parent32478845b2df919d7546a889e49d276ea416a1f3 (diff)
downloadinfinitytier-fa2bb91ae5515ef18ed662896b83d654d659e9f1.tar.gz
infinitytier-fa2bb91ae5515ef18ed662896b83d654d659e9f1.zip
Kill some old debug code.
-rw-r--r--node/Topology.cpp5
-rw-r--r--node/Utils.cpp1
2 files changed, 1 insertions, 5 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp
index 5aafc439..517934fb 100644
--- a/node/Topology.cpp
+++ b/node/Topology.cpp
@@ -128,10 +128,7 @@ SharedPtr<Peer> Topology::getPeer(const Address &zta)
return ap;
}
}
- } catch ( ... ) {
- fprintf(stderr,"EXCEPTION in getPeer() part 2\n");
- abort();
- } // invalid identity on disk?
+ } catch ( ... ) {} // invalid identity on disk?
return SharedPtr<Peer>();
}
diff --git a/node/Utils.cpp b/node/Utils.cpp
index 215e3b3e..06b726cc 100644
--- a/node/Utils.cpp
+++ b/node/Utils.cpp
@@ -248,7 +248,6 @@ unsigned int Utils::snprintf(char *buf,unsigned int len,const char *fmt,...)
if ((n >= (int)len)||(n < 0)) {
if (len)
buf[len - 1] = (char)0;
- abort();
throw std::length_error("buf[] overflow in Utils::snprintf");
}