X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fserialize.h;h=44eb4f580341a95fc1a00639899732511cebccd1;hp=3b3dcd4fcb4c0818ed7f3094a2dc6ba409d57dfb;hb=265dcc7e227581180487d4a34aaca2c9a82d0db0;hpb=0c80f9494715c7dacd6c74a6a56092b416a4d60d diff --git a/src/serialize.h b/src/serialize.h index 3b3dcd4..44eb4f5 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -824,18 +824,6 @@ public: vch.insert(it, first, last); } - void insert(iterator it, std::vector::const_iterator first, std::vector::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); - } #if !defined(_MSC_VER) || _MSC_VER >= 1300 void insert(iterator it, const char* first, const char* last)