From d5d8c21930dbcbcb71841d73d0316a323540f272 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sun, 14 Dec 2014 08:08:38 +0400 Subject: [PATCH] Remove redundant insert method in serialize. Resolve clang compilation issues. --- serialize.h | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-) diff --git a/serialize.h b/serialize.h index d67968a..7063b6a 100644 --- a/serialize.h +++ b/serialize.h @@ -932,18 +932,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) - { - if (it == vch.begin() + nReadPos && 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::const_iterator first, std::vector::const_iterator last) { if (it == vch.begin() + nReadPos && last - first <= nReadPos) -- 1.7.1