Disable subtotal promotion message when free shipping is active

Disable subtotal promotional message when free shipping is active.

if(!function_exists('remove_woo_discount_promotion_messages')){
    function remove_woo_discount_promotion_messages(){
        global $flycart_woo_discount_rules;
        if(!empty($flycart_woo_discount_rules) && isset($flycart_woo_discount_rules->discountBase)){
            $flycart_woo_discount_rules->discountBase->handleCartDiscount(1);
            if($flycart_woo_discount_rules->discountBase->has_free_shipping){
                if(class_exists('FlycartWooDiscountRulesGeneralHelper')){
                    FlycartWooDiscountRulesGeneralHelper::clearCartPromotionMessages();
                }
            }
        }
    }
}

add_action('woocommerce_after_calculate_totals', 'remove_woo_discount_promotion_messages', 1010);
add_action('woocommerce_before_shop_loop', 'remove_woo_discount_promotion_messages', 9);
add_action('woocommerce_before_single_product', 'remove_woo_discount_promotion_messages', 9);