lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 7be2c59 4/8: Comment out member function


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 7be2c59 4/8: Comment out member functions that are apparently unused
Date: Mon, 5 Oct 2020 19:57:18 -0400 (EDT)

branch: valyuta/002
commit 7be2c59aeb7b57a0a9127cfc8780cb2c8b476f94
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Comment out member functions that are apparently unused
---
 currency.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/currency.hpp b/currency.hpp
index 6090009..5a3365d 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -83,7 +83,9 @@ class currency
     // ctor ambiguates no other.
     explicit currency(data_type c, raw_cents) : m_ {c} {}
     explicit currency(double    d)            : m_ {from_double(d)} {}
+#if 0 // Apparently unused.
     explicit currency(int       i)            : m_ {from_int   (i)} {}
+#endif // 0
 
     currency& operator=(currency const&) = default;
 
@@ -112,8 +114,10 @@ class currency
     data_type cents() const {return m_;}
 
   private:
+#if 0 // Apparently unused.
     data_type from_int(int i) const
         {return cents_per_dollar * bourn_cast<data_type>(i);}
+#endif // 0
     // Want something just slightly more permissive:
 //  data_type from_double(double d) const {return bourn_cast<data_type>(100.0 
* d);}
     // Far too permissive:



reply via email to

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