Skip to content

Commit b3f7c8b

Browse files
Getting rid of dead code
1 parent 47977cd commit b3f7c8b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Port of Cinder's socket.__init__ which uses argument clinic cpython.

Modules/socketmodule.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5129,11 +5129,9 @@ _socket_socket___init___impl(PySocketSockObject *self, int family, int type,
51295129
int proto, PyObject *fdobj)
51305130
/*[clinic end generated code: output=8d20ec7eb58df701 input=c0966eb4587c4634]*/
51315131
{
5132-
//PySocketSockObject *s = (PySocketSockObject *)self;
5133-
//PyObject *fdobj = NULL;
5132+
51345133
SOCKET_T fd = INVALID_SOCKET;
5135-
//int family = -1, type = -1, proto = -1;
5136-
//static char *keywords[] = {"family", "type", "proto", "fileno", 0};
5134+
51375135
#ifndef MS_WINDOWS
51385136
#ifdef SOCK_CLOEXEC
51395137
int *atomic_flag_works = &sock_cloexec_works;
@@ -5142,11 +5140,6 @@ _socket_socket___init___impl(PySocketSockObject *self, int family, int type,
51425140
#endif
51435141
#endif
51445142

5145-
//if (!PyArg_ParseTupleAndKeywords(args, kwds,
5146-
// "|iiiO:socket", keywords,
5147-
// &family, &type, &proto, &fdobj))
5148-
// return -1;
5149-
51505143
#ifdef MS_WINDOWS
51515144
/* In this case, we don't use the family, type and proto args */
51525145
if (fdobj == NULL || fdobj == Py_None)

0 commit comments

Comments
 (0)