Skip to content

Commit 47c1050

Browse files
committed
Removed version check since ntuple(f, n) also work on Julia v0.3
1 parent 4a7c36f commit 47c1050

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Options.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ function Options{T<:OptionsChecking}(::Type{T},args...)
3838
end
3939
n = div(length(args),2)
4040
keys, index, vals = if n > 0
41-
if VERSION < v"0.4-"
42-
(args[1:2:end], ntuple(n, identity), Any[args[2:2:end]...])
43-
else
44-
(args[1:2:end], ntuple(identity, n), Any[args[2:2:end]...])
45-
end
41+
(args[1:2:end], ntuple(identity, n), Any[args[2:2:end]...])
4642
else
4743
((), (), Array(Any, 0))
4844
end

0 commit comments

Comments
 (0)