bug-indent
[Top][All Lists]
Advanced

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

[PATCH 09/18] output.c: Remove dead code


From: Tim Hentenaar
Subject: [PATCH 09/18] output.c: Remove dead code
Date: Sat, 4 Jul 2015 13:43:23 +0200

In this if() statement, paren_level is already assigned to 0 at
the beginning of the function and doesn't change in between. Thus,
paren_level > 0 is always false.

Signed-off-by: Tim Hentenaar <address@hidden>
---
 src/output.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/output.c b/src/output.c
index bb5d997..bc66c7b 100644
--- a/src/output.c
+++ b/src/output.c
@@ -848,11 +848,6 @@ static void dump_line_code(
          target_col = compute_code_target (paren_targ);
       }
 
-      if (paren_level > 0)
-      {
-         target_col += 
parser_state_tos->paren_indents[parser_state_tos->p_l_follow + paren_level- 1];
-      }
-
      /* If a line ends in an lparen character, the following line should
       * not line up with the parenthesis, but should be indented by the
       * usual amount.  */
-- 
2.3.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]