Remove item in Checkout

that function is deprecated, use wc_get_cart_remove_url( $cart_item_key ) instead

if (is_checkout()) {
    $product_name .= apply_filters('woocommerce_cart_item_remove_link', sprintf(
        '<a href="%s" rel="nofollow" class="remove" style="float:left;">&times;</a>',
        esc_url(wc_get_cart_remove_url($cart_item_key)),
        __('Remove this item', 'woocommerce'),
        esc_attr($cart_item['product_id']),
        esc_attr($cart_item['data']->get_sku())
    ), $cart_item_key);

    return $product_name;
}