[REFACT] Small cleanup. Removed unused variable

This commit is contained in:
hasherezade
2022-09-27 23:31:20 +02:00
parent b21f4bb565
commit d82a1799eb
2 changed files with 4 additions and 4 deletions
+4 -3
View File
@@ -142,7 +142,7 @@ offset_t CDisasm::getArgVA(int index, int argNum, bool &isOk) const
minidis::mnem_type mType = this->getMnemType(index);
const x86_reg reg = static_cast<x86_reg>(m_detail->x86.operands[argNum].mem.base);
const size_t opSize = m_detail->x86.operands[argNum].size;
//const size_t opSize = m_detail->x86.operands[argNum].size;
const x86_op_type type = m_detail->x86.operands[argNum].type;
size_t instrLen = getChunkSize(index);
@@ -304,11 +304,12 @@ bool CDisasm::isFollowable(const int y) const
return false;
}
const cs_detail *detail = &m_details.at(y);
const size_t argNum = 0;
if (!detail) return false;
const size_t cnt = static_cast<size_t>(detail->x86.op_count);
if (argNum >= cnt) return false;
if (!cnt) return false;
const size_t argNum = 0;
const x86_op_type type = detail->x86.operands[argNum].type;
const x86_reg reg = static_cast<x86_reg>(detail->x86.operands[argNum].mem.base);
@@ -54,7 +54,6 @@ bool DelayImpTreeModel::setData(const QModelIndex &index, const QVariant &value,
{
if (!index.isValid()) return false;
size_t fId = index.row();
uint32_t sID = this->columnToFID(index.column());
if (!wrapper()) return false;