Skip to content

Commit 4c44781

Browse files
committed
remove deprecated functions
1 parent 6cea661 commit 4c44781

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .zigrc,
33
.fingerprint = 0xb74441c95b654394,
4-
.version = "0.5.0",
4+
.version = "1.0.0",
55
.minimum_zig_version = "0.12.0",
66
.paths = .{
77
"build.zig",

src/root.zig

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,6 @@ pub fn RcAligned(comptime T: type, comptime alignment: u29) type {
9090
return self.asUnmanaged().tryUnwrap(self.alloc);
9191
}
9292

93-
/// DEPRECATED: Use `releaseUnwrap` instead. Will be removed in the next major release.
94-
pub fn releaseWithFn(self: Self, comptime f: anytype, args: anytype) void {
95-
self.asUnmanaged().releaseWithFn(self.alloc, f, args);
96-
}
97-
9893
inline fn asUnmanaged(self: Self) Unmanaged {
9994
return .{ .value = self.value };
10095
}
@@ -239,11 +234,6 @@ pub fn ArcAligned(comptime T: type, comptime alignment: u29) type {
239234
return self.asUnmanaged().releaseUnwrap(self.alloc);
240235
}
241236

242-
/// DEPRECATED: Use `releaseUnwrap` instead. Will be removed in the next major release.
243-
pub fn releaseWithFn(self: Self, comptime f: anytype, args: anytype) void {
244-
self.asUnmanaged().releaseWithFn(self.alloc, f, args);
245-
}
246-
247237
/// Returns the inner value, if the `Arc` has exactly one strong reference.
248238
/// Otherwise, `null` is returned.
249239
/// This will succeed even if there are outstanding weak references.
@@ -410,11 +400,6 @@ pub fn RcAlignedUnmanaged(comptime T: type, comptime alignment: u29) type {
410400
return null;
411401
}
412402

413-
/// DEPRECATED: Use `releaseUnwrap` instead. Will be removed in the next major release.
414-
pub fn releaseWithFn(_: Self, _: Allocator, comptime _: anytype, _: anytype) void {
415-
@compileError("DEPRECATED: Use `releaseUnwrap` instead. Will be removed in the next major release.");
416-
}
417-
418403
/// Returns the inner value, if the `Rc` has exactly one strong reference.
419404
/// Otherwise, `null` is returned.
420405
/// This will succeed even if there are outstanding weak references.
@@ -644,11 +629,6 @@ pub fn ArcAlignedUnmanaged(comptime T: type, comptime alignment: u29) type {
644629
return null;
645630
}
646631

647-
/// DEPRECATED: Use `releaseUnwrap` instead. Will be removed in the next major release.
648-
pub fn releaseWithFn(_: Self, _: Allocator, comptime _: anytype, _: anytype) void {
649-
@compileError("DEPRECATED: Use `releaseUnwrap` instead. Will be removed in the next major release.");
650-
}
651-
652632
/// Returns the inner value, if the `Arc` has exactly one strong reference.
653633
/// Otherwise, `null` is returned.
654634
/// This will succeed even if there are outstanding weak references.

0 commit comments

Comments
 (0)