remove unused function (because of 2519d83)

This works for me (tested with a ruby file that has errors)