removes dead code in spec/