remove unused throws statements