Commit 67c0b562 authored by Matthias Braun's avatar Matthias Braun
Browse files

cleanup: replace dummy callbacks with NULL

parent d8e80b8b
......@@ -71,7 +71,7 @@ static const tp_op_ops
/** tpop operations for method types */
method_ops = {
free_method_attrs,
free_method_entities,
NULL,
NULL,
NULL,
NULL,
......@@ -93,7 +93,7 @@ static const tp_op_ops
/** tpop operations for array types */
array_ops = {
NULL,
free_array_entities,
NULL,
free_array_automatic_entities,
NULL,
set_default_size,
......@@ -103,8 +103,8 @@ static const tp_op_ops
},
/** tpop operations for pointer types */
pointer_ops = {
free_pointer_attrs,
free_pointer_entities,
NULL,
NULL,
NULL,
set_pointer_mode,
NULL,
......
......@@ -748,12 +748,6 @@ ir_type *clone_type_method(ir_type *tp)
return res;
}
void free_method_entities(ir_type *method)
{
(void) method;
assert(method->type_op == type_method);
}
void free_method_attrs(ir_type *method)
{
assert(method->type_op == type_method);
......@@ -975,12 +969,6 @@ void free_array_automatic_entities(ir_type *array)
free_entity(get_array_element_entity(array));
}
void free_array_entities(ir_type *array)
{
(void) array;
assert(array->type_op == type_array);
}
void set_array_size(ir_type *array, ir_node *size)
{
assert(array->type_op == type_array);
......@@ -1070,18 +1058,6 @@ ir_type *new_type_pointer(ir_type *points_to)
return res;
}
void free_pointer_entities(ir_type *pointer)
{
(void) pointer;
assert(pointer->type_op == type_pointer);
}
void free_pointer_attrs(ir_type *pointer)
{
(void) pointer;
assert(pointer->type_op == type_pointer);
}
void set_pointer_points_to_type(ir_type *pointer, ir_type *tp)
{
assert(pointer->type_op == type_pointer);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment