| 57 | } |
| 58 | |
| 59 | void *oidmap_remove(struct oidmap *map, const struct object_id *key) |
| 60 | { |
| 61 | struct hashmap_entry entry; |
| 62 | |
| 63 | if (!map->map.cmpfn) |
| 64 | oidmap_init(map, 0); |
| 65 | |
| 66 | hashmap_entry_init(&entry, oidhash(key)); |
| 67 | return hashmap_remove(&map->map, &entry, key); |
| 68 | } |
| 69 | |
| 70 | void *oidmap_put(struct oidmap *map, void *entry) |
| 71 | { |