Skip to content

Commit 72fee06

Browse files
authored
Remove Mmap as a dependency (#100)
We can use Mmap for mapping IOStream but * It's not clear that this is necessary * Removing it avoids stdlib dependencies, making Base integration easier.
1 parent 74f7137 commit 72fee06

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ version = "0.1.0"
77
julia = "1.6"
88

99
[deps]
10-
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
1110

1211
[extras]
1312
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

src/JuliaSyntax.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module JuliaSyntax
22

3-
using Mmap
4-
53
# Helper utilities
64
include("utils.jl")
75

src/parse_stream.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ function ParseStream(io::Base.GenericIOBuffer; version=VERSION)
250250
textbuf = unsafe_wrap(Vector{UInt8}, pointer(io.data), length(io.data))
251251
ParseStream(textbuf, io, position(io)+1, version)
252252
end
253-
function ParseStream(io::IOStream; version=VERSION)
254-
textbuf = Mmap.mmap(io)
255-
ParseStream(textbuf, io, position(io)+1, version)
256-
end
257253
function ParseStream(io::IO; version=VERSION)
258254
textbuf = read(io)
259255
ParseStream(textbuf, textbuf, 1, version)

0 commit comments

Comments
 (0)