Commit 50a794d5f19 for woocommerce

commit 50a794d5f19e11eaf84dbe5110d4b749e4e9d0b5
Author: Abdalsalaam Halawa <abdalsalaamnafez@gmail.com>
Date:   Fri Mar 6 18:00:42 2026 +0200

    [Performance] - Remove unnecessary calculate_totals() call in CartCoupons DELETE handler (#63404)

    * remove unnecessary calculate_totals

    * Add changefile(s) from automation for the following project(s): woocommerce

    ---------

    Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>

diff --git a/plugins/woocommerce/changelog/63404-fix-delete-cart-coupons-performance b/plugins/woocommerce/changelog/63404-fix-delete-cart-coupons-performance
new file mode 100644
index 00000000000..04a684aecd2
--- /dev/null
+++ b/plugins/woocommerce/changelog/63404-fix-delete-cart-coupons-performance
@@ -0,0 +1,4 @@
+Significance: patch
+Type: performance
+
+Remove unnecessary `calculate_totals()` call from `DELETE /wc/store/v1/cart/coupons`. The result was never used since the endpoint returns an empty response body.
\ No newline at end of file
diff --git a/plugins/woocommerce/src/StoreApi/Routes/V1/CartCoupons.php b/plugins/woocommerce/src/StoreApi/Routes/V1/CartCoupons.php
index ab79daeeb4e..e56bf4949c6 100644
--- a/plugins/woocommerce/src/StoreApi/Routes/V1/CartCoupons.php
+++ b/plugins/woocommerce/src/StoreApi/Routes/V1/CartCoupons.php
@@ -129,7 +129,6 @@ class CartCoupons extends AbstractCartRoute {
 		$cart = $this->cart_controller->get_cart_instance();

 		$cart->remove_coupons();
-		$cart->calculate_totals();

 		return new \WP_REST_Response( [], 200 );
 	}