removes unused lines from spec