From 6280a10647d7247472f6aa62b544a7cab7aa2d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenta=20Sato=20=28=E4=BD=90=E8=97=A4=20=E5=BB=BA=E5=A4=AA?= =?UTF-8?q?=29?= Date: Mon, 26 Mar 2018 08:53:51 +0900 Subject: [PATCH] clean up code (#9) --- REQUIRE | 2 +- src/CodecXz.jl | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/REQUIRE b/REQUIRE index ac75b1b..3ef8720 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,4 +1,4 @@ julia 0.6 BinaryProvider 0.2 Compat 0.62 -TranscodingStreams 0.3 +TranscodingStreams 0.5 diff --git a/src/CodecXz.jl b/src/CodecXz.jl index 1bb75b6..b822ba3 100644 --- a/src/CodecXz.jl +++ b/src/CodecXz.jl @@ -16,7 +16,8 @@ import TranscodingStreams: Memory, Error, initialize, - finalize + finalize, + splitkwargs const liblzmapath = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl") if !isfile(liblzmapath) @@ -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")