Remove unused field

This commit is contained in:
Tatsuhiro Tsujikawa 2021-02-24 20:58:15 +09:00
parent e406a2c15e
commit b419bfd95f
2 changed files with 5 additions and 7 deletions

View File

@ -130,7 +130,6 @@ int nghttp2_map_each(nghttp2_map *map,
void nghttp2_map_entry_init(nghttp2_map_entry *entry, key_type key) {
entry->key = key;
entry->next = NULL;
}
/* FNV1a hash */

View File

@ -40,12 +40,11 @@
typedef int32_t key_type;
typedef struct nghttp2_map_entry {
struct nghttp2_map_entry *next;
key_type key;
#if SIZEOF_INT_P == 4
/* we requires 8 bytes aligment */
int64_t pad;
#endif
union {
key_type key;
/* we requires 8 bytes aligment */
int64_t pad;
};
} nghttp2_map_entry;
typedef struct nghttp2_map_bucket {