remove unused throwing exception.