Skip to content

Commit

Permalink
use Compat.pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeits committed Dec 19, 2017
1 parent eb13c31 commit 700436c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ julia 0.5
ForwardDiff 0.2
BinDeps
FunctionWrappers 0.1
Compat 0.40
6 changes: 1 addition & 5 deletions src/PATHSolver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module PATHSolver

using ForwardDiff
using FunctionWrappers: FunctionWrapper
using Compat: pairs

if isfile(joinpath(dirname(dirname(@__FILE__)), "deps", "deps.jl"))
include(joinpath(dirname(dirname(@__FILE__)), "deps", "deps.jl"))
Expand Down Expand Up @@ -71,11 +72,6 @@ function remove_option_file()
end
end

# Needed for compatibility with Julia v0.5 through v0.7
@static if VERSION < v"0.7.0-"
pairs(x) = [(p[1] => p[2]) for p in x]
end

function options(;kwargs...)
opt_file = open("path.opt", "w")
println(opt_file, "* Generated by PATHSolver.jl. Do not edit.")
Expand Down

0 comments on commit 700436c

Please sign in to comment.