aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-10-26 20:34:48 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-10-26 20:34:48 +0200
commite9755001ab1b63d205f1e130ffe42b213cb052c6 (patch)
tree59ed4d0bc5b09e91d53d72328e4b1c170b4ad5f3 /src/serialize.h
parente2130051778027c1120b90bf2975b933b2d02034 (diff)
downloadbitcoin-e9755001ab1b63d205f1e130ffe42b213cb052c6.tar.xz
Remove redundant insert method in serialize.
This seems to cause problems on recent clang, and looks totally redundant and unused. The const_iterator version is identical to the vector::const_iterator one (which is a typedef thereof). Marking it private (instead of removing) compiles fine, so this version is effectively unused even.
Diffstat (limited to 'src/serialize.h')
-rw-r--r--src/serialize.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/serialize.h b/src/serialize.h
index 4d9aec3426..d6e616b1cf 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -901,19 +901,6 @@ public:
iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }
void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }
- void insert(iterator it, const_iterator first, const_iterator last)
- {
- assert(last - first >= 0);
- if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos)
- {
- // special case for inserting at the front when there's room
- nReadPos -= (last - first);
- memcpy(&vch[nReadPos], &first[0], last - first);
- }
- else
- vch.insert(it, first, last);
- }
-
void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
{
assert(last - first >= 0);