summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-09 01:09:22 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-16 01:40:36 +0100
commit5e2596f26da5ab13f2386de1c0a3f67cd2f24776 (patch)
tree9c989de1e8b5640044017a217e9ce334341b586e
parent69f1be3e258140a4835d805596ea87f2a32e2083 (diff)
Remove unused code.
-rw-r--r--src/lib/nanomsg.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/nanomsg.cc b/src/lib/nanomsg.cc
index 0fc0dd357..4cc071370 100644
--- a/src/lib/nanomsg.cc
+++ b/src/lib/nanomsg.cc
@@ -123,9 +123,4 @@ Nanomsg::receive (int timeout)
recv_and_parse (timeout ? 0 : NN_DONTWAIT);
return get_from_pending ();
- if (!l) {
- throw CommunicationFailedError ();
- }
-
- return *l;
}