Remove unused code that causes failures with old Perl releases