From 73b9ede7e115fab245b0f59d18e4d6cc4d297cec Mon Sep 17 00:00:00 2001 From: Zhou Zhengping Date: Sat, 16 Jul 2016 21:43:58 -0400 Subject: core: add a basis function to reduce verbose code Change-Id: Icebe1b865edb317685e93f3ef11d98fd9b2c2e9a BUG: 1357226 Signed-off-by: Zhou Zhengping Reviewed-on: http://review.gluster.org/14936 Reviewed-by: Niels de Vos Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System --- xlators/meta/src/meta-helpers.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'xlators/meta') diff --git a/xlators/meta/src/meta-helpers.c b/xlators/meta/src/meta-helpers.c index d01fcb3c679..e681af59bf7 100644 --- a/xlators/meta/src/meta-helpers.c +++ b/xlators/meta/src/meta-helpers.c @@ -185,21 +185,6 @@ meta_direct_io_mode (dict_t *xdata, call_frame_t *frame) } -static uint64_t -gfid_to_ino (uuid_t gfid) -{ - uint64_t ino = 0; - int i = 0, j = 0; - - for (i = 15; i > (15 - 8); i--) { - ino += (uint64_t)(gfid[i]) << j; - j += 8; - } - - return ino; -} - - static void meta_uuid_copy (uuid_t dst, uuid_t src) { -- cgit