mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +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;
|
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 *
|
static lockobject *
|
||||||
newlockobject()
|
newlockobject()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue