Skip to content

Commit 085a8d0

Browse files
committed
Remove DataValueInterfaces code
1 parent 3015cda commit 085a8d0

File tree

2 files changed

+0
-66
lines changed

2 files changed

+0
-66
lines changed

src/DataAPI.jl

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -63,52 +63,6 @@ default definition.
6363
function refpool end
6464
refpool(A::AbstractArray) = nothing
6565

66-
"""
67-
nondatavaluetype(T)
68-
69-
For a type `T`, return the corresponding non-`DataValue` type, translating between
70-
`Union{T, Missing}` and `DataValue{T}`.
71-
72-
For example, `nondatavaluetype(Int64)` returns `Int64`, while
73-
`nondatavaluetype(DataValue{Int64})` returns `Union{Int64, Missing}`.
74-
75-
This generic function is owned by DataAPI.jl itself, which is the sole provider of the
76-
default definition.
77-
"""
78-
function nondatavaluetype end
79-
80-
nondatavaluetype(::Type{T}) where {T} = T
81-
nondatavaluetype(::Type{Union{}}) = Union{}
82-
83-
"""
84-
datavaluetype(T)
85-
86-
For a type `T`, return the corresponding `DataValue` type, translating between
87-
`Union{T, Missing}` and `DataValue{T}`.
88-
89-
For example, `datavaluetype(Int64)` returns `Int64`, while
90-
`datavaluetype(Union{Int64, Missing})` returns `DataValue{Int64}`.
91-
92-
This generic function is owned by DataAPI.jl itself, which is the sole provider of the
93-
default definition.
94-
"""
95-
function datavaluetype end
96-
97-
datavaluetype(::Type{T}) where {T} = T
98-
datavaluetype(::Type{Union{}}) = Union{}
99-
100-
"""
101-
unwrap(x)
102-
103-
For a value `x`, potentially "unwrap" it from a `DataValue` or similar container.
104-
105-
This generic function is owned by DataAPI.jl itself, which is the sole provider of the
106-
default definition.
107-
"""
108-
function unwrap end
109-
110-
unwrap(x) = x
111-
11266
"""
11367
describe(io::IO, x)
11468

test/runtests.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,4 @@ end
2727

2828
end
2929

30-
@testset "nondatavaluetype" begin
31-
32-
@test DataAPI.nondatavaluetype(Int64) == Int64
33-
@test DataAPI.nondatavaluetype(Union{}) == Union{}
34-
35-
end
36-
37-
@testset "datavaluetype" begin
38-
39-
@test DataAPI.datavaluetype(Int64) == Int64
40-
@test DataAPI.datavaluetype(Union{}) == Union{}
41-
42-
end
43-
44-
@testset "unwrap" begin
45-
46-
@test DataAPI.unwrap(1) == 1
47-
48-
end
49-
5030
end # @testset "DataAPI"

0 commit comments

Comments
 (0)