Bin redundant code

Change-Id: Id691052e343cea73f3dec512ee6f4d4960f9614b
This commit is contained in:
Pranav Kant
2017-06-07 09:19:52 +05:30
parent 4711debd9a
commit ee026723ed
2 changed files with 4 additions and 8 deletions

View File

@ -189,13 +189,10 @@ protected:
pngStream.write(png.data(), png.size());
pngStream.close();
if (std::getenv("DISPLAY") != nullptr)
if (std::system((std::string("display ") + pngFile.path()).c_str()) == -1)
{
if (std::system((std::string("display ") + pngFile.path()).c_str()) == -1)
{
// Not worth it to display a warning, this is just a throwaway test program, and
// the developer running it surely notices if nothing shows up...
}
// Not worth it to display a warning, this is just a throwaway test program, and
// the developer running it surely notices if nothing shows up...
}
}
else