Skip to content

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

Remove unused methods

Mira Szewczykcc6b233016f8
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 5d7d93fe38..6837e62eab 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -457,10 +457,6 @@ class ProductVariant(ModelWithMetadata):
def is_visible(self) -> bool:
return self.product.is_visible
- @property
- def is_available(self) -> bool:
- return self.is_visible and self.is_in_stock()
-
@property
def base_price(self) -> "Money":
return (
@@ -487,8 +483,6 @@ class ProductVariant(ModelWithMetadata):
is_digital = self.product.product_type.is_digital
return not self.is_shipping_required() and is_digital
- def is_in_stock(self) -> bool:
- return self.quantity_available > 0
def display_product(self, translated: bool = False) -> str:
if translated: