summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorkevg <claprix@yandex.ru>2016-11-24 17:36:02 +0300
committerkevg <claprix@yandex.ru>2016-11-24 17:36:02 +0300
commit780db8e25239e5423cfab50c04c60b79ebc0224b (patch)
tree2c73735c76607093d466a143627efdd8b4fbc2ca /mysys
parentf4d6f26a4fae3f0cfcc6e77667c7697c4e024189 (diff)
downloadmariadb-git-780db8e25239e5423cfab50c04c60b79ebc0224b.tar.gz
fix build and some warnings
Diffstat (limited to 'mysys')
-rw-r--r--mysys/thr_lock.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/mysys/thr_lock.c b/mysys/thr_lock.c
index e8c4ed9c614..a77db04acef 100644
--- a/mysys/thr_lock.c
+++ b/mysys/thr_lock.c
@@ -498,18 +498,6 @@ has_old_lock(THR_LOCK_DATA *data, THR_LOCK_INFO *owner)
return 0;
}
-static inline my_bool have_specific_lock(THR_LOCK_DATA *data,
- enum thr_lock_type type)
-{
- for ( ; data ; data=data->next)
- {
- if (data->type == type)
- return 1;
- }
- return 0;
-}
-
-
static void wake_up_waiters(THR_LOCK *lock);