Skip to content

Commit 61a83ed

Browse files
author
Miha Zgubic
committed
Revert "Add rand_tangent for types (#172)"
This reverts commit bc71ac1.
1 parent bc71ac1 commit 61a83ed

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/rand_tangent.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,3 @@ function rand_tangent(rng::AbstractRNG, x::T) where {T}
5757
Tangent{T}(; NamedTuple{field_names}(tangents)...)
5858
end
5959
end
60-
61-
rand_tangent(rng::AbstractRNG, ::Type) = NoTangent()
62-
rand_tangent(rng::AbstractRNG, ::Module) = NoTangent()

test/rand_tangent.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ using FiniteDifferences: rand_tangent
1111
(:a, NoTangent),
1212
(true, NoTangent),
1313
(4, NoTangent),
14-
(FiniteDifferences, NoTangent), # Module object
15-
# Types (not instances of type)
16-
(Foo, NoTangent),
17-
(Union{Int, Foo}, NoTangent),
18-
(Union{Int, Foo}, NoTangent),
19-
(Vector, NoTangent),
20-
(Vector{Float64}, NoTangent),
21-
(Integer, NoTangent),
22-
(Type{<:Real}, NoTangent),
2314

2415
# Numbers.
2516
(5.0, Float64),

0 commit comments

Comments
 (0)