@@ -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