gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant-frontends] branch master updated: Remove de


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant-frontends] branch master updated: Remove dead code.
Date: Fri, 03 Mar 2017 13:03:34 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant-frontends.

The following commit(s) were added to refs/heads/master by this push:
     new 4d3427e  Remove dead code.
4d3427e is described below

commit 4d3427e1cf84da7474f4a17f59d4a2ad0ecb5b54
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Mar 3 13:03:17 2017 +0100

    Remove dead code.
---
 talerfrontends/helpers.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/talerfrontends/helpers.py b/talerfrontends/helpers.py
index ea77e93..d406bb1 100644
--- a/talerfrontends/helpers.py
+++ b/talerfrontends/helpers.py
@@ -39,10 +39,6 @@ if not NDIGITS:
 def amount_to_float(amount):
     return amount['value'] + (float(amount['fraction']) / float(FRACTION_BASE))
 
-def amount_to_string(amount):
-    f = amount_to_float(amount)
-    o = "".join(["%.", "%sf" % NDIGITS])
-    return o % f
 
 def amount_from_float(x):
     value = int(x)
@@ -64,15 +60,6 @@ def join_urlparts(*parts):
     return s
 
 
-def amount_sum(a, b):
-    assert(a["currency"] == b["currency"])
-    fractions = a["fraction"] + b["fraction"]
-    ret = {"value": a["value"] + b["value"] + int(fractions / FRACTION),
-           "fraction": fractions % FRACTION,
-           "currency": a["currency"]}
-    return ret
-
-
 def make_url(page, *query_params):
     """
     Return a URL to a page in the current Flask application with the given

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]