Removes lines not in use anymore