X Tutup
Skip to content

Commit f1f71b4

Browse files
committed
Removed unused code
1 parent fa35e89 commit f1f71b4

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/webserver.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -238,28 +238,6 @@ bool webserver::register_resource(const std::string& resource, http_resource* hr
238238
return result.second;
239239
}
240240

241-
MHD_socket create_socket (int domain, int type, int protocol)
242-
{
243-
int sock_cloexec = SOCK_CLOEXEC;
244-
int ctype = SOCK_STREAM | sock_cloexec;
245-
246-
/* use SOCK_STREAM rather than ai_socktype: some getaddrinfo
247-
* implementations do not set ai_socktype, e.g. RHL6.2. */
248-
MHD_socket fd = socket(domain, ctype, protocol);
249-
250-
#ifdef _WINDOWS
251-
if (fd == INVALID_SOCKET)
252-
#else
253-
if ((fd == -1) &&
254-
(errno == EINVAL || errno == EPROTONOSUPPORT) && (sock_cloexec != 0)
255-
)
256-
#endif
257-
{
258-
fd = socket(domain, type, protocol);
259-
}
260-
return fd;
261-
}
262-
263241
bool webserver::start(bool blocking)
264242
{
265243

0 commit comments

Comments
 (0)
X Tutup