Skip to content

Commit f43e1a1

Browse files
committed
remove unused functions and variables
1 parent 1af8de4 commit f43e1a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_multiprocessing/semaphore.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ shm_semlock_counters = {
380380
.counters = (CounterObject *)NULL,
381381
};
382382

383+
/*
383384
static int
384385
_get_constant_semlock(PyObject *self)
385386
{
@@ -405,7 +406,6 @@ _get_constant_semlock(PyObject *self)
405406
Py_DECREF(semlock_type);
406407
return 0;
407408
408-
/* ---
409409
PyObject *py_shared_mem_name = PyDict_GetItemString(semlock_type->tp_dict,
410410
"_MACOSX_SHAREDMEM_NAME");
411411
if (py_shared_mem_name == NULL) {
@@ -432,8 +432,8 @@ _get_constant_semlock(PyObject *self)
432432
Py_DECREF(module);
433433
py_DECREF(py_name;
434434
Py_DECREF(semlock_type);
435-
--- */
436435
}
436+
-- */
437437

438438
/*
439439
SemLockObject with aditionnal members:
@@ -1517,7 +1517,7 @@ semlock_dealloc(SemLockObject* self)
15171517
So we have to search if sempahore already exists yet.
15181518
*/
15191519
int n_opened_sems = -1;
1520-
CounterObject *counter = NULL;
1520+
//CounterObject *counter = NULL;
15211521

15221522
if (self->handle_mutex != SEM_FAILED) {
15231523
SEM_CLOSE(self->handle_mutex);

0 commit comments

Comments
 (0)