Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit 3ec0ad2

Browse files
committedJul 20, 2017
Remove dead code
1 parent 0406ff2 commit 3ec0ad2

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed
 

‎libdevcore/RLP.cpp

+1-24
Original file line numberDiff line numberDiff line change
@@ -336,27 +336,4 @@ void RLPStream::pushCount(size_t _count, byte _base)
336336
BOOST_THROW_EXCEPTION(RLPException() << errinfo_comment("Count too large for RLP"));
337337
m_out.push_back((byte)(br + _base)); // max 8 bytes.
338338
pushInt(_count, br);
339-
}
340-
341-
static void streamOut(std::ostream& _out, dev::RLP const& _d, unsigned _depth = 0)
342-
{
343-
if (_depth > 64)
344-
_out << "<max-depth-reached>";
345-
else if (_d.isNull())
346-
_out << "null";
347-
else if (_d.isInt())
348-
_out << std::showbase << std::hex << std::nouppercase << _d.toInt<bigint>(RLP::LaissezFaire) << dec;
349-
else if (_d.isData())
350-
_out << escaped(_d.toString(), false);
351-
else if (_d.isList())
352-
{
353-
_out << "[";
354-
int j = 0;
355-
for (auto i: _d)
356-
{
357-
_out << (j++ ? ", " : " ");
358-
streamOut(_out, i, _depth + 1);
359-
}
360-
_out << " ]";
361-
}
362-
}
339+
}

0 commit comments

Comments
 (0)
This repository has been archived.