Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove unused function
Mira Szewczykead87b9ecd03
diff --git a/saleor/product/utils.py b/saleor/product/utils.pyindex 1d5d038ca5..5a3f566ad8 100644--- a/saleor/product/utils.py+++ b/saleor/product/utils.py@@ -151,16 +151,3 @@ def price_as_dict(price):def price_range_as_dict(price_range):return {'maxPrice': price_as_dict(price_range.max_price),'minPrice': price_as_dict(price_range.min_price)}---def display_variant_with_attributes(variant):- attributes = ProductAttribute.objects.prefetch_related('values').all()-- display_dict = get_attributes_display_map(variant, attributes)-- attrs_string = []- for key, value in six.iteritems(display_dict):- attr = attributes.get(id=key)- attrs_string.append('%s: %s' % (attr, value))-- return '%s (%s)' % (smart_text(variant), ', '.join(attrs_string))