summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-04-15 13:38:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-04-15 13:38:59 (GMT)
commit35f37c72e9d81e478395914da6c10b3c546761a7 (patch)
treed8ac653b6f336af8d68d7d3d60284d5eb9dab54c
parent8d3d09fc1502f8422da72863bfd0984f833a10cf (diff)
Removed useless signals for immediate operands.
-rw-r--r--ChangeLog5
-rw-r--r--src/arch/immediate.c27
2 files changed, 5 insertions, 27 deletions
diff --git a/ChangeLog b/ChangeLog
index 455ada7..91ea5c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+17-04-15 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/arch/immediate.c:
+ Remove useless signals for immediate operands.
+
17-04-13 Cyrille Bagard <nocbos@gmail.com>
* src/gui/panels/bintree.ui:
diff --git a/src/arch/immediate.c b/src/arch/immediate.c
index 1b13ea1..6c8be5c 100644
--- a/src/arch/immediate.c
+++ b/src/arch/immediate.c
@@ -63,11 +63,6 @@ struct _GImmOperandClass
{
GArchOperandClass parent; /* Classe parente */
- /* Signaux */
-
- void (* value_changed) (GImmOperand *);
- void (* output_changed) (GImmOperand *);
-
};
@@ -125,22 +120,6 @@ static void g_imm_operand_class_init(GImmOperandClass *klass)
operand->print = (operand_print_fc)g_imm_operand_print;
operand->build_tooltip = (operand_build_tooltip_fc)g_imm_operand_build_tooltip;
- g_signal_new("value-changed",
- G_TYPE_IMM_OPERAND,
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET(GImmOperandClass, value_changed),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
-
- g_signal_new("output-changed",
- G_TYPE_IMM_OPERAND,
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET(GImmOperandClass, output_changed),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
-
}
@@ -483,8 +462,6 @@ bool g_imm_operand_set_value(GImmOperand *operand, MemoryDataSize size, uint64_t
operand->size = size;
operand->raw = value;
- g_signal_emit_by_name(operand, "value-changed");
-
return true;
}
@@ -507,8 +484,6 @@ void g_imm_operand_pad(GImmOperand *operand, bool state)
{
operand->zpad = state;
- g_signal_emit_by_name(operand, "output-changed");
-
}
@@ -587,8 +562,6 @@ void g_imm_operand_set_display(GImmOperand *operand, ImmOperandDisplay display)
{
operand->display = display;
- g_signal_emit_by_name(operand, "output-changed");
-
}