remove unused throw statement