Skip to content

Commit c084472

Browse files
committed
Tidy up commented out code
1 parent a81136e commit c084472

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/libzstd.jl

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,6 @@ end
1616

1717
const MAX_CLEVEL = max_clevel()
1818

19-
# ZSTD_outBuffer
20-
#=
21-
mutable struct InBuffer
22-
src::Ptr{Cvoid}
23-
size::Csize_t
24-
pos::Csize_t
25-
26-
function InBuffer()
27-
return new(C_NULL, 0, 0)
28-
end
29-
end
30-
=#
31-
32-
# ZSTD_inBuffer
33-
#=
34-
mutable struct OutBuffer
35-
dst::Ptr{Cvoid}
36-
size::Csize_t
37-
pos::Csize_t
38-
39-
function OutBuffer()
40-
return new(C_NULL, 0, 0)
41-
end
42-
end
43-
=#
4419
const InBuffer = LibZstd.ZSTD_inBuffer
4520
InBuffer() = InBuffer(C_NULL, 0, 0)
4621
const OutBuffer = LibZstd.ZSTD_outBuffer
@@ -119,7 +94,6 @@ function reset!(dstream::DStream)
11994
# LibZstd.ZSTD_resetDStream is deprecated
12095
# https://github.com/facebook/zstd/blob/9d2a45a705e22ad4817b41442949cd0f78597154/lib/zstd.h#L2332-L2339
12196
return LibZstd.ZSTD_DCtx_reset(dstream.ptr, LibZstd.ZSTD_reset_session_only)
122-
#return ccall((:ZSTD_resetDStream, libzstd), Csize_t, (Ptr{Cvoid},), dstream.ptr)
12397
end
12498

12599
function decompress!(dstream::DStream)
@@ -139,5 +113,4 @@ const ZSTD_CONTENTSIZE_ERROR = Culonglong(0) - 2
139113

140114
function find_decompressed_size(src::Ptr, size::Integer)
141115
return LibZstd.ZSTD_findDecompressedSize(src, size)
142-
#return ccall((:ZSTD_findDecompressedSize, libzstd), Culonglong, (Ptr{Cvoid}, Csize_t), src, size)
143116
end

0 commit comments

Comments
 (0)