mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Make gcc -Wall happy:
Remove unused decls of getloclock() and is_lockobject().
This commit is contained in:
parent
c20687355b
commit
89bae99c5d
1 changed files with 0 additions and 12 deletions
|
@ -54,18 +54,6 @@ typedef struct {
|
|||
|
||||
staticforward PyTypeObject Locktype;
|
||||
|
||||
#define is_lockobject(v) ((v)->ob_type == &Locktype)
|
||||
|
||||
static type_lock
|
||||
getlocklock(lock)
|
||||
PyObject *lock;
|
||||
{
|
||||
if (lock == NULL || !is_lockobject(lock))
|
||||
return NULL;
|
||||
else
|
||||
return ((lockobject *) lock)->lock_lock;
|
||||
}
|
||||
|
||||
static lockobject *
|
||||
newlockobject()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue