Commit 8bc677a6ca856d0476d10dd84194dfaaee2cb981

Con Kolivas 2012-11-05T14:44:58

Calculate midstate for gbt work and remove now unused variable.