From 376bdfc38b9644e4b44081fd560f465fdc67fa72 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Tue, 17 Nov 2020 11:50:52 +0000 Subject: [PATCH] Remove archaic error is DISPLAY is not set --- lib/Core/Plot.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Core/Plot.cpp b/lib/Core/Plot.cpp index fd695f7..d7b44fa 100644 --- a/lib/Core/Plot.cpp +++ b/lib/Core/Plot.cpp @@ -663,10 +663,6 @@ void Plot::display(void) string command; ostringstream scriptBuf; - if (!getenv("DISPLAY")) - { - LATAN_ERROR(System, "cannot find DISPLAY variable: is it set ?"); - } getProgramPath(); command = gnuplotPath_ + "/" + gnuplotBin_ + " 2>/dev/null"; gnuplotPipe = popen(command.c_str(), "w");