| 49 | } |
| 50 | |
| 51 | void *oidmap_get(const struct oidmap *map, const struct object_id *key) |
| 52 | { |
| 53 | if (!map->map.cmpfn) |
| 54 | return NULL; |
| 55 | |
| 56 | return hashmap_get_from_hash(&map->map, oidhash(key), key); |
| 57 | } |
| 58 | |
| 59 | void *oidmap_remove(struct oidmap *map, const struct object_id *key) |
| 60 | { |