From 3a460b84503dbb5ffcd6cf0772a38a7f2cf6429b Mon Sep 17 00:00:00 2001 From: Simeon David Schaub Date: Fri, 27 Dec 2024 22:14:41 +0100 Subject: [PATCH] remove public declaration instead --- src/deprecations.jl | 10 +++++----- src/helpers/recursive_ops.jl | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/deprecations.jl b/src/deprecations.jl index d4511b7762..c17940db7e 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -1,12 +1,12 @@ # Recursive Operations --> Functors.fmap @deprecate recursive_add!!(x, y) Functors.fmap( Utils.add!!, x, y; exclude=MLDataDevices.isleaf -) false -@deprecate recursive_make_zero(x) Functors.fmap(Utils.zero, x; exclude=MLDataDevices.isleaf) false +) +@deprecate recursive_make_zero(x) Functors.fmap(Utils.zero, x; exclude=MLDataDevices.isleaf) @deprecate recursive_make_zero!!(x) Functors.fmap( Utils.zero!!, x; exclude=MLDataDevices.isleaf -) false +) @deprecate recursive_copyto!(x, y) Functors.fmap( copyto!, x, y; exclude=MLDataDevices.isleaf -) false -@deprecate recursive_map(f, args...) Functors.fmap(f, args...; exclude=MLDataDevices.isleaf) false +) +@deprecate recursive_map(f, args...) Functors.fmap(f, args...; exclude=MLDataDevices.isleaf) diff --git a/src/helpers/recursive_ops.jl b/src/helpers/recursive_ops.jl index f7f91d66d6..55902151f2 100644 --- a/src/helpers/recursive_ops.jl +++ b/src/helpers/recursive_ops.jl @@ -110,7 +110,3 @@ For the following types it directly defines recursion rules: correctness of this implementation for specific usecases. """ function recursive_map end - -@compat(public, - (recursive_add!!, recursive_copyto!, recursive_eltype, - recursive_make_zero, recursive_map, recursive_make_zero!!))