From 33a8ecfbce9c108f0a945dcce479e87c8a2714dc Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 4 Apr 2018 08:35:40 -0700 Subject: [PATCH] Delete unused non-const-iterator CSCript::GetOp overloads --- src/script/script.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/script/script.h b/src/script/script.h index 224785d99..00fd469fa 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -493,23 +493,6 @@ public: } - bool GetOp(iterator& pc, opcodetype& opcodeRet, std::vector& vchRet) - { - // Wrapper so it can be called with either iterator or const_iterator - const_iterator pc2 = pc; - bool fRet = GetOp2(pc2, opcodeRet, &vchRet); - pc = begin() + (pc2 - begin()); - return fRet; - } - - bool GetOp(iterator& pc, opcodetype& opcodeRet) - { - const_iterator pc2 = pc; - bool fRet = GetOp2(pc2, opcodeRet, nullptr); - pc = begin() + (pc2 - begin()); - return fRet; - } - bool GetOp(const_iterator& pc, opcodetype& opcodeRet, std::vector& vchRet) const { return GetOp2(pc, opcodeRet, &vchRet);