Remove old an unused mining code