diff --git a/src/RPCServer.cpp b/src/RPCServer.cpp index 5ba83adc93..ccd7b66bda 100644 --- a/src/RPCServer.cpp +++ b/src/RPCServer.cpp @@ -389,7 +389,6 @@ Json::Value RPCServer::doAccountLines(Json::Value ¶ms) // We access a committed ledger and need not worry about changes. uint256 uDirLineNodeFirst; uint256 uDirLineNodeLast; - // Ledger::getDirIndex(uBase, letKind, uNodeDir) if (mNetOps->getDirLineInfo(uLedger, naAccount, uDirLineNodeFirst, uDirLineNodeLast)) { diff --git a/src/SHAMap.h b/src/SHAMap.h index 18677c7be7..f0e41bc51e 100644 --- a/src/SHAMap.h +++ b/src/SHAMap.h @@ -80,11 +80,7 @@ class hash_SMN { // These must be randomized for release public: std::size_t operator() (const SHAMapNode& mn) const -#if 0 - { return mn.getDepth() ^ static_cast(mn.getNodeID().GetAt(0)); } -#else { return mn.getDepth() ^ *reinterpret_cast(mn.getNodeID().begin()); } -#endif std::size_t operator() (const uint256& u) const { return *reinterpret_cast(u.begin()); } @@ -176,7 +172,7 @@ public: uint32 getSeq() const { return mSeq; } void setSeq(uint32 s) { mSeq = s; } const uint256& getNodeHash() const { return mHash; } - TNType getType() const { return mType; } + TNType getType() const { return mType; } // type functions bool isLeaf() const { return (mType == tnTRANSACTION) || (mType == tnACCOUNT_STATE); }