Skip to content

Commit 868ab16

Browse files
committed
Remove unneeded type.
1 parent 7b1660d commit 868ab16

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/UDF.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,6 @@ sqlreturn(context, val::Vector{UInt8}) = sqlite3_result_blob(context, val)
3535
sqlreturn(context, val::Bool) = sqlreturn(context, int(val))
3636
sqlreturn(context, val) = sqlreturn(context, sqlserialize(val))
3737

38-
# a fixed size type to store the aggregate context
39-
#type AggCont
40-
# nbytes::Int
41-
# optr::Ptr{UInt8}
42-
#
43-
# function AggCont(o)
44-
# # TODO: is serialization necessary? maybe just store an array instead
45-
# oarr = sqlserialize(o)
46-
# osize = sizeof(oarr)
47-
# # TODO: can we stop julia from garbage collecting without c_malloc?
48-
# optr = convert(Ptr{UInt8}, c_malloc(osize))
49-
# unsafe_copy!(optr, pointer(oarr), osize)
50-
#
51-
# return new(osize, optr)
52-
# end
53-
#end
5438
# convert a bytearray to an int arr[1] is 256^0, arr[2] is 256^1...
5539
# TODO: would making this a method of convert needlessly pollute the Base namespace?
5640
function bytestoint(arr::Vector{UInt8})
@@ -61,8 +45,6 @@ function bytestoint(arr::Vector{UInt8})
6145
end
6246
s
6347
end
64-
# TODO: remove this
65-
inttobytes(i::Int) = reinterpret(UInt8, [i])
6648

6749
function stepfunc(init, func, fsym=symbol(string(func)*"_step"))
6850
nm = isdefined(Base,fsym) ? :(Base.$fsym) : fsym

0 commit comments

Comments
 (0)