Skip to content

Commit 1ae58fe

Browse files
resolve merge
1 parent 3bfaec9 commit 1ae58fe

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

Modules/socketmodule.c

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -601,42 +601,6 @@ get_sock_fd(PySocketSockObject *s)
601601
#endif
602602
}
603603

604-
static inline void
605-
set_sock_fd(PySocketSockObject *s, SOCKET_T fd)
606-
{
607-
#ifdef Py_GIL_DISABLED
608-
#if SIZEOF_SOCKET_T == SIZEOF_INT
609-
_Py_atomic_store_int_relaxed((int *)&s->sock_fd, (int)fd);
610-
#elif SIZEOF_SOCKET_T == SIZEOF_LONG
611-
_Py_atomic_store_long_relaxed((long *)&s->sock_fd, (long)fd);
612-
#elif SIZEOF_SOCKET_T == SIZEOF_LONG_LONG
613-
_Py_atomic_store_llong_relaxed((long long *)&s->sock_fd, (long long)fd);
614-
#else
615-
#error "Unsupported SIZEOF_SOCKET_T"
616-
#endif
617-
#else
618-
s->sock_fd = fd;
619-
#endif
620-
}
621-
622-
static inline SOCKET_T
623-
get_sock_fd(PySocketSockObject *s)
624-
{
625-
#ifdef Py_GIL_DISABLED
626-
#if SIZEOF_SOCKET_T == SIZEOF_INT
627-
return (SOCKET_T)_Py_atomic_load_int_relaxed((int *)&s->sock_fd);
628-
#elif SIZEOF_SOCKET_T == SIZEOF_LONG
629-
return (SOCKET_T)_Py_atomic_load_long_relaxed((long *)&s->sock_fd);
630-
#elif SIZEOF_SOCKET_T == SIZEOF_LONG_LONG
631-
return (SOCKET_T)_Py_atomic_load_llong_relaxed((long long *)&s->sock_fd);
632-
#else
633-
#error "Unsupported SIZEOF_SOCKET_T"
634-
#endif
635-
#else
636-
return s->sock_fd;
637-
#endif
638-
}
639-
640604
static inline socket_state *
641605
get_module_state(PyObject *mod)
642606
{

0 commit comments

Comments
 (0)