Skip to content

Commit

Permalink
#1189 Remove inexistent ecs_meta_set_component
Browse files Browse the repository at this point in the history
* Remove inexistent ecs_meta_set_component

I am having link issues and couldn't find where this function is defined in this project, let me know if I'm not seeing something \o

* bake it!

---------

Co-authored-by: Paulo Feodrippe <pfeodrippe@paulos-mbp.home>
  • Loading branch information
pfeodrippe and Paulo Feodrippe committed Apr 18, 2024
1 parent 91b988e commit b16bd56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
8 changes: 4 additions & 4 deletions flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -45341,10 +45341,10 @@ void flecs_table_delete(

ecs_move_t move_dtor = ti->hooks.move_dtor;

// If move_ctor is not set but ctor_move_dtor is set, assign move_dtor to ctor_move_dtor.
// This adjustment is crucial for compatibility across different language bindings where
// the standard memory model of C may not apply, potentially altering how operations
// within the table are handled.
// If neither move nor move_ctor are set, this indicates that non-destructive move
// semantics are not supported for this type. In such cases, we set the move_dtor
// as ctor_move_dtor, which indicates a destructive move operation.
// This adjustment ensures compatibility with different language bindings.
if (!ti->hooks.move_ctor && ti->hooks.ctor_move_dtor) {
move_dtor = ti->hooks.ctor_move_dtor;
}
Expand Down
6 changes: 0 additions & 6 deletions flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14267,12 +14267,6 @@ int ecs_meta_set_id(
ecs_meta_cursor_t *cursor,
ecs_id_t value);

/** Set field with (component) id value */
FLECS_API
int ecs_meta_set_component(
ecs_meta_cursor_t *cursor,
ecs_id_t value);

/** Set field with null value */
FLECS_API
int ecs_meta_set_null(
Expand Down
6 changes: 0 additions & 6 deletions include/flecs/addons/meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -683,12 +683,6 @@ int ecs_meta_set_id(
ecs_meta_cursor_t *cursor,
ecs_id_t value);

/** Set field with (component) id value */
FLECS_API
int ecs_meta_set_component(
ecs_meta_cursor_t *cursor,
ecs_id_t value);

/** Set field with null value */
FLECS_API
int ecs_meta_set_null(
Expand Down

0 comments on commit b16bd56

Please sign in to comment.