Skip to content

Commit 2511741

Browse files
committed
remove unused MCOperand_Init()
1 parent b5050df commit 2511741

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

MCInst.c

-6
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ void MCInst_addOperand2(MCInst *inst, MCOperand *Op)
9090
inst->size++;
9191
}
9292

93-
void MCOperand_Init(MCOperand *op)
94-
{
95-
op->Kind = kInvalid;
96-
op->FPImmVal = 0.0;
97-
}
98-
9993
bool MCOperand_isValid(const MCOperand *op)
10094
{
10195
return op->Kind != kInvalid;

MCInst.h

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ struct MCOperand {
4343
};
4444
};
4545

46-
void MCOperand_Init(MCOperand *op);
47-
4846
bool MCOperand_isValid(const MCOperand *op);
4947

5048
bool MCOperand_isReg(const MCOperand *op);

0 commit comments

Comments
 (0)