From 700436c91d189a7de29584a84863dbcc084a4e0c Mon Sep 17 00:00:00 2001
From: Robin Deits <robin.deits@gmail.com>
Date: Mon, 18 Dec 2017 21:40:30 -0500
Subject: [PATCH] use Compat.pairs

---
 REQUIRE           | 1 +
 src/PATHSolver.jl | 6 +-----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/REQUIRE b/REQUIRE
index e219eaa..f403b14 100644
--- a/REQUIRE
+++ b/REQUIRE
@@ -2,3 +2,4 @@ julia 0.5
 ForwardDiff 0.2
 BinDeps
 FunctionWrappers 0.1
+Compat 0.40
diff --git a/src/PATHSolver.jl b/src/PATHSolver.jl
index 4f0a44f..119493c 100644
--- a/src/PATHSolver.jl
+++ b/src/PATHSolver.jl
@@ -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"))
@@ -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.")