From 0ce73efeaa6a9b45ae39836bd80f1e98b40b8e9e Mon Sep 17 00:00:00 2001 From: Matti Pastell Date: Mon, 31 Oct 2016 10:37:03 +0200 Subject: [PATCH] Remove hanging code from saving plots.jl --- src/plots.jl | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/plots.jl b/src/plots.jl index cd62346..aa6d4d7 100644 --- a/src/plots.jl +++ b/src/plots.jl @@ -9,19 +9,3 @@ function plots_set_size(chunk) end push_preexecute_hook(plots_set_size) - -function Base.display(report::Report, m::MIME"image/png", data::Plots.Plot) - Plots.gui(data) #Required for savefig to work - chunk = report.cur_chunk - full_name, rel_name = get_figname(report, chunk) - push!(report.figures, rel_name) - Plots.savefig(data, full_name) -end - -function Base.display(report::Report, m::MIME"application/pdf", data::Plots.Plot) - Plots.gui(data) - chunk = report.cur_chunk - full_name, rel_name = get_figname(report, chunk) - push!(report.figures, rel_name) - Plots.savefig(data, full_name) -end