Skip to content

Commit 17636eb

Browse files
authored
Remove VERSION >= v"1.4" checks (#173)
1 parent efccf5b commit 17636eb

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/stream.jl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,7 @@ function Base.unsafe_read(stream::TranscodingStream, output::Ptr{UInt8}, nbytes:
388388
m = min(buffersize(buffer), p_end - p)
389389
copydata!(p, buffer, m)
390390
p += m
391-
@static if VERSION >= v"1.4"
392-
GC.safepoint()
393-
end
391+
GC.safepoint()
394392
end
395393
if p < p_end && eof(stream)
396394
throw(EOFError())
@@ -493,9 +491,7 @@ function Base.unsafe_write(stream::TranscodingStream, input::Ptr{UInt8}, nbytes:
493491
m = min(marginsize(buffer1), p_end - p)
494492
copydata!(buffer1, p, m)
495493
p += m
496-
@static if VERSION >= v"1.4"
497-
GC.safepoint()
498-
end
494+
GC.safepoint()
499495
end
500496
return Int(p - input)
501497
end
@@ -728,13 +724,9 @@ function writedata!(output::IO, input::Buffer)
728724
n = GC.@preserve input Base.unsafe_write(output, bufferptr(input), buffersize(input))
729725
consumed!(input, n)
730726
nwritten += n
731-
@static if VERSION >= v"1.4"
732-
GC.safepoint()
733-
end
734-
end
735-
@static if VERSION >= v"1.4"
736727
GC.safepoint()
737728
end
729+
GC.safepoint()
738730
return nwritten
739731
end
740732

0 commit comments

Comments
 (0)