Skip to content

Commit

Permalink
Remove query map size
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Sep 4, 2024
1 parent 600a044 commit 2dec06e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion rmw_zenohpico_c/src/detail/query_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ static int get_index(rmw_zp_query_map_t* query_map, uint32_t key) {
rmw_ret_t rmw_zp_query_map_init(rmw_zp_query_map_t* query_map, size_t capacity,
rcutils_allocator_t* allocator) {
query_map->capacity = capacity;
query_map->size = 0;

query_map->keys = allocator->zero_allocate(capacity, sizeof(uint32_t), allocator->state);

Expand Down
1 change: 0 additions & 1 deletion rmw_zenohpico_c/src/detail/query_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ typedef struct {
uint32_t* keys;
const z_loaned_query_t** queries;
size_t capacity;
size_t size; // TODO(bjsowa): Do we need this?
} rmw_zp_query_map_t;

rmw_ret_t rmw_zp_query_map_init(rmw_zp_query_map_t* query_map, size_t capacity,
Expand Down

0 comments on commit 2dec06e

Please sign in to comment.