summaryrefslogtreecommitdiffstats
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-07 16:35:54 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-07 16:35:54 (GMT)
commit89bae99c5dec2ed9f8d9abffc2a8ce62df90f165 (patch)
treed5b2c333c88d6efd98f339540114ce81349018fe /Modules/threadmodule.c
parentc20687355b02106bd6a13ec3a3a26c5379e6097c (diff)
downloadcpython-89bae99c5dec2ed9f8d9abffc2a8ce62df90f165.zip
cpython-89bae99c5dec2ed9f8d9abffc2a8ce62df90f165.tar.gz
cpython-89bae99c5dec2ed9f8d9abffc2a8ce62df90f165.tar.bz2
Make gcc -Wall happy:
Remove unused decls of getloclock() and is_lockobject().
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 3f32af2..a1ba362 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -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()
{