[latexila] PostProcessorLatex: remove dead code



commit 6a63a70fd45b3909455c888bbada521de665a0cf
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Feb 7 19:16:23 2017 +0100

    PostProcessorLatex: remove dead code
    
    Found by Coverity.

 src/liblatexila/latexila-post-processor-latex.c |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/src/liblatexila/latexila-post-processor-latex.c b/src/liblatexila/latexila-post-processor-latex.c
index 764d402..987f020 100644
--- a/src/liblatexila/latexila-post-processor-latex.c
+++ b/src/liblatexila/latexila-post-processor-latex.c
@@ -1196,8 +1196,10 @@ update_stack_file_heuristic (LatexilaPostProcessorLatex *pp,
           /* Guess the filename is continued on the next line, only if the
            * current filename does not exist.
            */
-          else if (is_last_char)
+          else
             {
+              g_assert (is_last_char);
+
               if (file_exists (pp, pp->priv->filename_buffer->str))
                 {
                   push_file_on_stack (pp, FALSE);
@@ -1209,20 +1211,6 @@ update_stack_file_heuristic (LatexilaPostProcessorLatex *pp,
                   pp->priv->state = STATE_FILENAME_HEURISTIC;
                 }
             }
-
-          /* Filename not detected. */
-          else
-            {
-              pp->priv->state = STATE_START;
-
-              if (pp->priv->filename_buffer != NULL)
-                {
-                  g_string_free (pp->priv->filename_buffer, TRUE);
-                  pp->priv->filename_buffer = NULL;
-                }
-
-              expect_filename = FALSE;
-            }
         }
 
       /* TeX is opening a file. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]