std: remove deprecated API for the upcoming release

See #3811
This commit is contained in:
Andrew Kelley
2022-09-15 19:40:04 -07:00
parent 7b32aacbaf
commit d3d24874c9
16 changed files with 8 additions and 94 deletions

View File

@@ -201,8 +201,6 @@ pub fn ArrayHashMap(
return self.unmanaged.getOrPutValueContext(self.allocator, key, value, self.ctx);
}
pub const ensureCapacity = @compileError("deprecated; call `ensureUnusedCapacity` or `ensureTotalCapacity`");
/// Increases capacity, guaranteeing that insertions up until the
/// `expected_count` will not cause an allocation, and therefore cannot fail.
pub fn ensureTotalCapacity(self: *Self, new_capacity: usize) !void {
@@ -755,8 +753,6 @@ pub fn ArrayHashMapUnmanaged(
return res;
}
pub const ensureCapacity = @compileError("deprecated; call `ensureUnusedCapacity` or `ensureTotalCapacity`");
/// Increases capacity, guaranteeing that insertions up until the
/// `expected_count` will not cause an allocation, and therefore cannot fail.
pub fn ensureTotalCapacity(self: *Self, allocator: Allocator, new_capacity: usize) !void {