Skip to content

Commit 33a8ecf

Browse files
committed
Delete unused non-const-iterator CSCript::GetOp overloads
1 parent 2fb168b commit 33a8ecf

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/script/script.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -493,23 +493,6 @@ class CScript : public CScriptBase
493493
}
494494

495495

496-
bool GetOp(iterator& pc, opcodetype& opcodeRet, std::vector<unsigned char>& vchRet)
497-
{
498-
// Wrapper so it can be called with either iterator or const_iterator
499-
const_iterator pc2 = pc;
500-
bool fRet = GetOp2(pc2, opcodeRet, &vchRet);
501-
pc = begin() + (pc2 - begin());
502-
return fRet;
503-
}
504-
505-
bool GetOp(iterator& pc, opcodetype& opcodeRet)
506-
{
507-
const_iterator pc2 = pc;
508-
bool fRet = GetOp2(pc2, opcodeRet, nullptr);
509-
pc = begin() + (pc2 - begin());
510-
return fRet;
511-
}
512-
513496
bool GetOp(const_iterator& pc, opcodetype& opcodeRet, std::vector<unsigned char>& vchRet) const
514497
{
515498
return GetOp2(pc, opcodeRet, &vchRet);

0 commit comments

Comments
 (0)