Skip to content

Commit e0d6fa1

Browse files
committed
all true
1 parent 85caa29 commit e0d6fa1

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

src/amount.h

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -54,58 +54,21 @@ class CColorAmount : public colorAmount_t
5454

5555
bool operator>(const CColorAmount& rhs) const
5656
{
57-
CColorAmount lhs = (*this);
58-
for (CColorAmount::const_iterator itr(rhs.begin()); itr != rhs.end(); itr++) {
59-
CColorAmount::const_iterator itl = lhs.find(itr->first);
60-
if (itl == lhs.end())
61-
return false;
62-
else if (itl->second <= itr->second)
63-
return false;
64-
}
65-
6657
return true;
6758
}
6859

6960
bool operator>=(const CColorAmount& rhs) const
7061
{
71-
CColorAmount lhs = (*this);
72-
for (CColorAmount::const_iterator itr(rhs.begin()); itr != rhs.end(); itr++) {
73-
CColorAmount::const_iterator itl = lhs.find(itr->first);
74-
if (itl == lhs.end())
75-
return false;
76-
else if (itl->second < itr->second)
77-
return false;
78-
}
79-
8062
return true;
8163
}
8264

8365
bool operator<(const CColorAmount& rhs) const
8466
{
85-
CColorAmount lhs = (*this);
86-
for (CColorAmount::const_iterator itl(lhs.begin()); itl != lhs.end(); itl++) {
87-
CColorAmount::const_iterator itr = rhs.find(itl->first);
88-
if (itr == rhs.end())
89-
return false;
90-
else if (itl->second >= itr->second)
91-
return false;
92-
}
93-
9467
return true;
9568
}
9669

9770
bool operator<=(const CColorAmount& rhs) const
9871
{
99-
CColorAmount lhs = (*this);
100-
101-
for (CColorAmount::const_iterator itl(lhs.begin()); itl != lhs.end(); itl++) {
102-
CColorAmount::const_iterator itr = rhs.find(itl->first);
103-
if (itr == rhs.end())
104-
return false;
105-
else if (itl->second > itr->second)
106-
return false;
107-
}
108-
10972
return true;
11073
}
11174

0 commit comments

Comments
 (0)