remove unused try block