Skip to content

Commit

Permalink
remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 committed Jun 11, 2017
1 parent 3ad0837 commit 10788ca
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,3 @@ function unsafe_read(input::IO, output::Ptr{UInt8}, nbytes::Int)::Int
nread += n
return nread
end

function unsafe_read(input::IO, mem::Memory)
return unsafe_read(input, mem.ptr, Int(mem.size))
end

function unsafe_write(output::IO, ptr::Ptr{UInt8}, nbytes::Int)::Int
return Base.unsafe_write(output, ptr, nbytes)
end

function unsafe_write(output::IO, mem::Memory)
return Base.unsafe_write(output, mem.ptr, mem.size)
end

0 comments on commit 10788ca

Please sign in to comment.