]> git.lyx.org Git - features.git/commitdiff
Remove code that is no longer needed
authorScott Kostyshak <skostysh@lyx.org>
Tue, 5 May 2015 07:00:29 +0000 (03:00 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 5 May 2015 07:00:29 +0000 (03:00 -0400)
Because of our better mechanism for dealing with errors (72c5385f),
the problem described in the comment is no longer possible.
NO_OUTPUT is treated as an error so there will no longer be a
lingering PDF in this case.

src/LaTeX.cpp

index ba13b22c22fb006974dbf13e7354bbf0eca6b9d2..3b82fa9484d52ce37dcbad5f11730139461db43c 100644 (file)
@@ -406,16 +406,6 @@ int LaTeX::run(TeXErrors & terr)
        // Write the dependencies to file.
        head.write(depfile);
 
-       if (scanres & NO_OUTPUT) {
-               // A previous run could have left a PDF and since
-               // no PDF is created if NO_OUTPUT, we remove any
-               // existing PDF and temporary files so that an
-               // incorrect PDF is not displayed, which could otherwise
-               // happen if View is run again because the checksum will
-               // be the same so any lingering PDF will be viewed.
-               removeAuxiliaryFiles();
-       }
-
        if (exit_code)
                scanres |= NONZERO_ERROR;