Skip to content

Commit

Permalink
clean up code (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 authored Mar 25, 2018
1 parent f813790 commit 6280a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.6
BinaryProvider 0.2
Compat 0.62
TranscodingStreams 0.3
TranscodingStreams 0.5
13 changes: 2 additions & 11 deletions src/CodecXz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import TranscodingStreams:
Memory,
Error,
initialize,
finalize
finalize,
splitkwargs

const liblzmapath = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
if !isfile(liblzmapath)
Expand All @@ -25,16 +26,6 @@ end
include(liblzmapath)
check_deps()

# TODO: This method will be added in the next version of TranscodingStreams.jl.
function splitkwargs(kwargs, keys)
hits = []
others = []
for kwarg in kwargs
push!(kwarg[1] keys ? hits : others, kwarg)
end
return hits, others
end

include("liblzma.jl")
include("compression.jl")
include("decompression.jl")
Expand Down

0 comments on commit 6280a10

Please sign in to comment.