MCPcopy Index your code
hub / github.com/git/git / oidmap_remove

Function oidmap_remove

oidmap.c:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void *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
70void *oidmap_put(struct oidmap *map, void *entry)
71{

Callers 1

test_oidmap__removeFunction · 0.85

Calls 4

oidmap_initFunction · 0.85
hashmap_entry_initFunction · 0.85
oidhashFunction · 0.85
hashmap_removeFunction · 0.85

Tested by 1

test_oidmap__removeFunction · 0.68