From 88db0996e3287a62e519ef4cc09f0b8516f6a9b9 Mon Sep 17 00:00:00 2001 From: Mark Vitale Date: Wed, 9 May 2018 16:50:55 -0400 Subject: [PATCH] ubik: remove unused ContactQuorum_DISK_Write This function is not used; remove it. No functional change is incurred by this commit. Reviewed-on: https://gerrit.openafs.org/13077 Reviewed-by: Andrew Deason Reviewed-by: Michael Meffie Reviewed-by: Marcio Brito Barbosa Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit 8b1e730c11a6ed7dc067ef185302bd57a69f6d1e) Change-Id: I548e2442684a26ab017afebb1c42bdef9bd7c7bf Reviewed-on: https://gerrit.openafs.org/13187 Reviewed-by: Michael Meffie Reviewed-by: Andrew Deason Reviewed-by: Joe Gorse Reviewed-by: Mark Vitale Reviewed-by: Marcio Brito Barbosa Reviewed-by: Cheyenne Wills Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- src/ubik/ubik.c | 20 -------------------- src/ubik/ubik.p.h | 5 ----- 2 files changed, 25 deletions(-) diff --git a/src/ubik/ubik.c b/src/ubik/ubik.c index fb764c5c6..2345fa31f 100644 --- a/src/ubik/ubik.c +++ b/src/ubik/ubik.c @@ -260,26 +260,6 @@ ContactQuorum_DISK_Lock(struct ubik_trans *atrans, int aflags,afs_int32 file, return ContactQuorum_rcode(okcalls, rcode); } - -afs_int32 -ContactQuorum_DISK_Write(struct ubik_trans *atrans, int aflags, - afs_int32 file, afs_int32 position, bulkdata *data) -{ - struct ubik_server *ts = NULL; - afs_int32 code = 0, rcode, okcalls; - struct rx_connection *conn; - int done; - - done = ContactQuorum_iterate(atrans, aflags, &ts, &conn, &rcode, &okcalls, code); - while (!done) { - if (conn) - code = DISK_Write(conn, &atrans->tid, file, position, data); - done = ContactQuorum_iterate(atrans, aflags, &ts, &conn, &rcode, &okcalls, code); - } - return ContactQuorum_rcode(okcalls, rcode); -} - - afs_int32 ContactQuorum_DISK_Truncate(struct ubik_trans *atrans, int aflags, afs_int32 file, afs_int32 length) diff --git a/src/ubik/ubik.p.h b/src/ubik/ubik.p.h index a84ca586d..06f532174 100644 --- a/src/ubik/ubik.p.h +++ b/src/ubik/ubik.p.h @@ -473,11 +473,6 @@ extern afs_int32 ContactQuorum_DISK_Lock(struct ubik_trans *atrans, afs_int32 file, afs_int32 position, afs_int32 length, afs_int32 type); -extern afs_int32 ContactQuorum_DISK_Write(struct ubik_trans *atrans, - int aflags, - afs_int32 file, afs_int32 position, - bulkdata *data); - extern afs_int32 ContactQuorum_DISK_Truncate(struct ubik_trans *atrans, int aflags, afs_int32 file, afs_int32 length); -- 2.39.5