Skip to content

Commit 9bf25c6

Browse files
Revert "readd unwrap macro"
This reverts commit f8d0fbb.
1 parent bb2fa35 commit 9bf25c6

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

Objects/weakrefobject.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -557,21 +557,6 @@ _proxy_unwrap(PyObject **op, int *did_incref)
557557
return 1;
558558
}
559559

560-
/* If a parameter is a proxy, check that it is still "live" and wrap it,
561-
* replacing the original value with the raw object. Raises ReferenceError
562-
* if the param is a dead proxy.
563-
*/
564-
#define UNWRAP(o) \
565-
if (PyWeakref_CheckProxy(o)) { \
566-
o = _PyWeakref_GET_REF(o); \
567-
if (!proxy_check_ref(o)) { \
568-
return NULL; \
569-
} \
570-
} \
571-
else { \
572-
Py_INCREF(o); \
573-
}
574-
575560
#define WRAP_UNARY(method, generic) \
576561
static PyObject * \
577562
method(PyObject *proxy) { \

0 commit comments

Comments
 (0)