mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-20 23:24:34 +00:00
Bin redundant code
Change-Id: Id691052e343cea73f3dec512ee6f4d4960f9614b
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user