From 89bae99c5dec2ed9f8d9abffc2a8ce62df90f165 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 7 Oct 1998 16:35:54 +0000 Subject: Make gcc -Wall happy: Remove unused decls of getloclock() and is_lockobject(). --- Modules/threadmodule.c | 12 ------------ 1 file changed, 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() { -- cgit v0.12