Skip to content

Commit 28ea9d1

Browse files
author
Christopher Doris
committed
remove disused function
1 parent e6a0205 commit 28ea9d1

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Utils/Utils.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,6 @@ function explode_union(T)
2121
end
2222
end
2323

24-
"""
25-
pointer_from_obj(x)
26-
27-
Returns `(p, c)` where `Base.pointer_from_objref(p) === x`.
28-
29-
The pointer remains valid provided the object `c` is not garbage collected.
30-
"""
31-
function pointer_from_obj(o::T) where {T}
32-
if T.mutable
33-
c = o
34-
p = Base.pointer_from_objref(o)
35-
else
36-
c = Ref{Any}(o)
37-
p = unsafe_load(Ptr{Ptr{Cvoid}}(Base.pointer_from_objref(c)))
38-
end
39-
p, c
40-
end
41-
4224
"""
4325
ExtraNewline(x)
4426

0 commit comments

Comments
 (0)