Skip to content

Commit d7e8370

Browse files
authored
Remove some unused internal code (#164)
1 parent b220728 commit d7e8370

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/buffer.jl

-14
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,6 @@ function skipbuffer!(buf::Buffer, n::Integer)
183183
return buf
184184
end
185185

186-
# Take the ownership of the marked data.
187-
function takemarked!(buf::Buffer)
188-
@assert buf.markpos > 0
189-
sz = buf.marginpos - buf.markpos
190-
copyto!(buf.data, 1, buf.data, buf.markpos, sz)
191-
initbuffer!(buf)
192-
return resize!(buf.data, sz)
193-
end
194-
195186
# Copy data from `data` to `buf`.
196187
function copydata!(buf::Buffer, data::Ptr{UInt8}, nbytes::Integer)
197188
makemargin!(buf, nbytes)
@@ -200,11 +191,6 @@ function copydata!(buf::Buffer, data::Ptr{UInt8}, nbytes::Integer)
200191
return buf
201192
end
202193

203-
# Copy data from `data` to `buf`.
204-
function copydata!(buf::Buffer, data::Buffer, nbytes::Integer = length(data))
205-
return copydata!(buf, bufferptr(data), nbytes)
206-
end
207-
208194
# Copy data from `buf` to `data`.
209195
function copydata!(data::Ptr{UInt8}, buf::Buffer, nbytes::Integer)
210196
# NOTE: It's caller's responsibility to ensure that the buffer has at least

0 commit comments

Comments
 (0)