Inline many calls and delete unused procedures

This commit is contained in:
gingerBill
2022-09-17 14:59:16 +01:00
parent c37de9459e
commit 9e3ea92829
2 changed files with 20 additions and 34 deletions
+1 -2
View File
@@ -296,7 +296,7 @@ clear_map :: proc "contextless" (m: ^$T/map[$K]$V) {
@builtin
reserve_map :: proc(m: ^$T/map[$K]$V, capacity: int, loc := #caller_location) {
if m != nil {
__dynamic_map_reserve(__get_map_header(m), capacity, loc)
__dynamic_map_reserve(__get_map_header(m), uint(capacity), loc)
}
}
@@ -334,7 +334,6 @@ delete_key :: proc(m: ^$T/map[$K]$V, key: K) -> (deleted_key: K, deleted_value:
__dynamic_map_erase(h, fr)
}
}
return
}