Remove unused code.
authorCarl Hetherington <cth@carlh.net>
Mon, 9 Nov 2020 00:09:22 +0000 (01:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 16 Nov 2020 00:40:36 +0000 (01:40 +0100)
src/lib/nanomsg.cc

index 0fc0dd357edc7a5b61535922c4ac96b805cc08cd..4cc071370d0f9674e8de56a6b86df0912e06eab1 100644 (file)
@@ -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;
 }