Type comparison is handled in higher-level code and not needed at the bottom.

This commit is contained in:
JoelKatz
2012-08-22 05:17:23 -07:00
parent c2a3d5b468
commit 962e9f0180

View File

@@ -91,8 +91,8 @@ Json::Value TMNEAmount::getJson(int v) const
int TMNEAmount::compare(const TransactionMetaNodeEntry& e) const
{
assert(getType() != e.getType());
return getType() - e.getType();
assert(false); // can't be two changed amounts of same type
return 0;
}
TMNEAccount::TMNEAccount(int type, SerializerIterator& sit) : TransactionMetaNodeEntry(type)