From 60aac12180024ecea9a92f5f4f97e48dd3252660 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 22 Feb 2010 15:58:57 -0600 Subject: [PATCH] Remove lih_r Nothing references the function lih_r anymore. Remove the dead code, and be a little more similar to what's on master. Change-Id: I00262cd27156fc370cd74c35d2e7a0309e1037f9 Reviewed-on: http://gerrit.openafs.org/1369 Tested-by: Andrew Deason Reviewed-by: Alistair Ferguson Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 4ca7b6fcc124f473ed5b86bea804a9df5d2c8833) --- src/viced/callback.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/viced/callback.c b/src/viced/callback.c index 4b5d04d31..4d0cfd51c 100644 --- a/src/viced/callback.c +++ b/src/viced/callback.c @@ -292,8 +292,6 @@ static int MultiBreakVolumeCallBack(struct host *host, int isheld, struct VCBParams *parms); static int MultiBreakVolumeLaterCallBack(struct host *host, int isheld, struct VCBParams *parms); -static int lih_r(register struct host *host, register int held, - register struct host *hostp); static int GetSomeSpace_r(struct host *hostp, int locked); static int ClearHostCallbacks_r(struct host *hp, int locked); @@ -1580,23 +1578,6 @@ CleanupTimedOutCallBacks_r(void) static struct host *lih_host; static int lih_host_held; -static int -lih_r(register struct host *host, register int held, - register struct host *hostp) -{ - if (host->cblist - && ((hostp && host != hostp) || (!held && !h_OtherHolds_r(host))) - && (!lih_host || host->ActiveCall < lih_host->ActiveCall)) { - if (lih_host != NULL && lih_host_held) { - h_Release_r(lih_host); - } - lih_host = host; - lih_host_held = !held; - held = 1; - } - return held; -} - /* This version does not allow 'host' to be selected unless its ActiveCall * is newer than 'hostp' which is the host with the oldest ActiveCall from * the last pass (if it is provided). We filter out any hosts that are -- 2.39.5