From 6a47cae0cc1591c7283849b8d3888860a5e07f24 Mon Sep 17 00:00:00 2001 From: Rami Date: Sat, 6 Jan 2024 02:36:43 +0100 Subject: [PATCH] remove unused func --- core/templatetags/plan_pricing.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/templatetags/plan_pricing.py b/core/templatetags/plan_pricing.py index ece33ef0..1d66a770 100644 --- a/core/templatetags/plan_pricing.py +++ b/core/templatetags/plan_pricing.py @@ -177,17 +177,6 @@ def round5(x): return 5 * round(x / 5) -def get_currency_and_amount(money: Money): - if money.currency in STANDARD_CURRENCIES: - return money.currency, int(100 * money.amount) - elif money.currency in ZERO_DECIMAL_CURRENCIES: - return money.currency, int(money.amount) - elif money.currency in THREE_DECIMAL_CURRENCIES: - return money.currency, round5(int(1000 * money.amount)) - else: - return ("EUR", int(100 * convert_money(money, "EUR").amount)) - - @register.simple_tag def get_plan_price(request, plan): """Get price depending on the GDP per capita"""