Commit 9f2f3da3625234bdff0c48d30d4edf2d209af61b

Con Kolivas 2012-12-02T20:45:57

Remove unused getwork times in getswork.

diff --git a/cgminer.c b/cgminer.c
index a72d61f..d48714b 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5880,7 +5880,6 @@ static void reap_curl(struct pool *pool)
 
 static bool pool_getswork(struct pool *pool)
 {
-	struct timeval tv_getwork, tv_getwork_reply;
 	bool ret = false;
 	int rolltime;
 	json_t *val;
@@ -5890,10 +5889,8 @@ static bool pool_getswork(struct pool *pool)
 	if (unlikely(!curl))
 		quit (1, "CURL initialisation failed in pool_getswork");
 
-	gettimeofday(&tv_getwork, NULL);
 	val = json_rpc_call(curl, pool->rpc_url, pool->rpc_userpass,
 			    pool->rpc_req, true, false, &rolltime, pool, false);
-	gettimeofday(&tv_getwork_reply, NULL);
 
 	if (val) {
 		struct work *work = make_work();