From 70d7653815a0e5884b5168dd62a1ed4c46ef7833 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Tue, 22 Jan 2019 08:41:09 +0800 Subject: [PATCH] remove unused MCOperand_Init() --- MCInst.c | 6 ------ MCInst.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/MCInst.c b/MCInst.c index 1694e5de..a87c30d2 100644 --- a/MCInst.c +++ b/MCInst.c @@ -90,12 +90,6 @@ void MCInst_addOperand2(MCInst *inst, MCOperand *Op) inst->size++; } -void MCOperand_Init(MCOperand *op) -{ - op->Kind = kInvalid; - op->FPImmVal = 0.0; -} - bool MCOperand_isValid(const MCOperand *op) { return op->Kind != kInvalid; diff --git a/MCInst.h b/MCInst.h index 9ecd14b9..6e95c3a7 100644 --- a/MCInst.h +++ b/MCInst.h @@ -43,8 +43,6 @@ struct MCOperand { }; }; -void MCOperand_Init(MCOperand *op); - bool MCOperand_isValid(const MCOperand *op); bool MCOperand_isReg(const MCOperand *op);