Cleaned up trans_fail(), per eddyb request.

This removes some unused code and simplifies the remaining code.