From c8e7ec5e24613d8a20cd06d9e1b70e9386a889c4 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 12 Mar 2012 13:00:45 +0530 Subject: protocol/client: remove unused variables from 'priv/conf' 'last_sent', and 'last_recieved' variables were not used anymore after having RPC layer. Hence removed it from the code. Change-Id: I1ba74d47f909406ebde43476ccfed724e6c7e77f Signed-off-by: Amar Tumballi BUG: 801721 Reviewed-on: http://review.gluster.com/2916 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/protocol/client/src/client.c | 2 -- xlators/protocol/client/src/client.h | 2 -- 2 files changed, 4 deletions(-) (limited to 'xlators/protocol/client/src') diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index 3567dedbd1b..d01848f0a70 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -2498,8 +2498,6 @@ client_priv_dump (xlator_t *this) } gf_proc_dump_write("connecting", "%d", conf->connecting); - gf_proc_dump_write("last_sent", "%s", ctime(&conf->last_sent.tv_sec)); - gf_proc_dump_write("last_received", "%s", ctime(&conf->last_received.tv_sec)); if (conf->rpc) { gf_proc_dump_write("total_bytes_read", "%"PRIu64, diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h index 7203556f58e..050a9b014ac 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -73,8 +73,6 @@ typedef struct clnt_conf { pthread_mutex_t lock; int connecting; int connected; - struct timeval last_sent; - struct timeval last_received; rpc_clnt_prog_t *fops; rpc_clnt_prog_t *mgmt; -- cgit