From 6d6619064492ab776d46ebae8d0cc13fac76231a Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Mon, 17 Jul 2017 15:16:20 +0200 Subject: [PATCH] no eval shenanigans --- src/backends.jl | 6 +++--- src/output.jl | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/backends.jl b/src/backends.jl index 9248d05b..19a9c6ea 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -135,7 +135,7 @@ function pickDefaultBackend() Pkg.installed(env_default) # this will error if not installed sym = Symbol(lowercase(env_default)) if haskey(_backendType, sym) - return @eval backend($sym) + return backend(sym) else warn("You have set PLOTS_DEFAULT_BACKEND=$env_default but it is not a valid backend package. Choose from:\n\t", join(sort(_backends), "\n\t")) @@ -150,12 +150,12 @@ function pickDefaultBackend() # features, speed, and robustness for pkgstr in ("GR", "PyPlot", "PlotlyJS", "PGFPlots", "UnicodePlots", "InspectDR", "GLVisualize") if Pkg.installed(pkgstr) != nothing - return @eval backend(Symbol(lowercase($pkgstr))) + return backend(Symbol(lowercase(pkgstr))) end end # the default if nothing else is installed - @eval backend(:plotly) + backend(:plotly) end diff --git a/src/output.jl b/src/output.jl index 06a049e5..5c036fe7 100644 --- a/src/output.jl +++ b/src/output.jl @@ -224,10 +224,6 @@ if is_installed("FileIO") end end - - - - # function html_output_format(fmt) # if fmt == "png" # @eval function Base.show(io::IO, ::MIME"text/html", plt::Plot)