Skip to content

Commit

Permalink
refactor: ready for 2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
myuon committed Sep 28, 2023
1 parent defd355 commit 849b17c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions quartz/std.qz
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,6 @@ fun map_at(map: Map, key: string): any {
}
}

@[build_if(version == "2.13.0")]
fun map_index(map: Map, key: string): ptr[any] {
if map.count == 0 {
return panic("map_index[empty]: key ".concat(key).concat(" not found"));
Expand All @@ -987,7 +986,6 @@ fun map_index(map: Map, key: string): ptr[any] {
}
}

@[build_if(version == "2.13.0")]
fun map_index_lhs(map: Map, key: string): ptr[any] {
if (map.count + 1) * 2 > map.capacity {
let new_capacity = map.capacity * 2;
Expand Down

0 comments on commit 849b17c

Please sign in to comment.