aboutsummaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2022-07-05 12:15:59 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-07-20 16:26:19 +0200
commit5db7d2ca0aa51ff25f97bf21ce0cbc9e6b741cbd (patch)
tree83decccdff8f4f73e9fd95a30201c8e9faf72029 /src/compat
parent5c82ca3365f6451d342c94cedc3f9b015598e9c2 (diff)
downloadbitcoin-5db7d2ca0aa51ff25f97bf21ce0cbc9e6b741cbd.tar.xz
moveonly: move IsSelectableSocket() from compat.h to sock.{h,cpp}
To be converted to a method of the `Sock` class.
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/compat.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index a8e5552c0a..cc37797577 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -109,14 +109,6 @@ typedef char* sockopt_arg_type;
#define USE_POLL
#endif
-bool static inline IsSelectableSocket(const SOCKET& s) {
-#if defined(USE_POLL) || defined(WIN32)
- return true;
-#else
- return (s < FD_SETSIZE);
-#endif
-}
-
// MSG_NOSIGNAL is not available on some platforms, if it doesn't exist define it as 0
#if !defined(MSG_NOSIGNAL)
#define MSG_NOSIGNAL 0