From d1d2f3f33805f94f41219c5ab54302ef48f3c9d9 Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Sat, 27 Dec 2025 00:31:54 -0300 Subject: [PATCH] chore: remove unused parseShippingMethodType function --- backend/internal/http/handler/shipping_handler.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/backend/internal/http/handler/shipping_handler.go b/backend/internal/http/handler/shipping_handler.go index 875b35c..5229f47 100644 --- a/backend/internal/http/handler/shipping_handler.go +++ b/backend/internal/http/handler/shipping_handler.go @@ -159,19 +159,6 @@ func (h *Handler) CalculateShipping(w http.ResponseWriter, r *http.Request) { writeJSON(w, http.StatusOK, options) } -func parseShippingMethodType(value string) (domain.ShippingMethodType, error) { - switch strings.ToLower(strings.TrimSpace(value)) { - case string(domain.ShippingMethodPickup): - return domain.ShippingMethodPickup, nil - case string(domain.ShippingMethodOwnDelivery): - return domain.ShippingMethodOwnDelivery, nil - case string(domain.ShippingMethodThirdParty): - return domain.ShippingMethodThirdParty, nil - default: - return "", errors.New("invalid shipping method type") - } -} - // ListShipments godoc // @Summary List shipments // @Description Returns shipments. Admins see all, Tenants see only their own.