From 717a3002be18ac3e996b63e818afdd8cc5aaae90 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 29 Sep 2016 21:57:33 -0400 Subject: [PATCH] Remove unneeded asserts --- socketft.h | 2 +- winpipes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/socketft.h b/socketft.h index 2ebee4db..825680d0 100644 --- a/socketft.h +++ b/socketft.h @@ -94,7 +94,7 @@ public: {if (result == static_cast(SOCKET_ERROR)) HandleError(operation);} #ifdef USE_WINDOWS_STYLE_SOCKETS void CheckAndHandleError(const char *operation, BOOL result) const - {CRYPTOPP_ASSERT(result==TRUE || result==FALSE); if (!result) HandleError(operation);} + {if (!result) HandleError(operation);} void CheckAndHandleError(const char *operation, bool result) const {if (!result) HandleError(operation);} #endif diff --git a/winpipes.h b/winpipes.h index f7335ffe..d98cbf62 100644 --- a/winpipes.h +++ b/winpipes.h @@ -55,7 +55,7 @@ protected: virtual HANDLE GetHandle() const =0; virtual void HandleError(const char *operation) const; void CheckAndHandleError(const char *operation, BOOL result) const - {CRYPTOPP_ASSERT(result==TRUE || result==FALSE); if (!result) HandleError(operation);} + {if (!result) HandleError(operation);} }; //! \brief Pipe-based implementation of NetworkReceiver