How to remove the download notice from the order email?

In some cases, the automatic download table that WooCommerce integrates in the order email is not useful. With the following code in the functions.php file this is removed.

add_action( 'woocommerce_email', 'remove_order_downloads_from_emails', 10, 1 );
function remove_order_downloads_from_emails( $emails ){
    remove_action( 'woocommerce_email_order_details', array( $emails, 'order_downloads' ), 10 );
}