Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Drop unused resolver

Marcin Gębala7d01e6511da1
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.py
index ef38609608..2c847a8eea 100644
--- a/saleor/graphql/product/types/products.py
+++ b/saleor/graphql/product/types/products.py
@@ -347,8 +347,6 @@ class ProductVariant(CountableDjangoObjectType, MetadataObjectType):
)
return VariantPricingInfo(**asdict(availability))
- resolve_availability = resolve_pricing
-
@staticmethod
def resolve_is_available(root: models.ProductVariant, info):
country = info.context.country
@@ -523,8 +521,6 @@ class Product(CountableDjangoObjectType, MetadataObjectType):
)
return ProductPricingInfo(**asdict(availability))
- resolve_availability = resolve_pricing
-
@staticmethod
@gql_optimizer.resolver_hints(prefetch_related=("variants"))
def resolve_is_available(root: models.Product, _info):