Module Name: src Committed By: rillig Date: Mon Oct 11 18:55:49 UTC 2021
Modified Files: src/usr.bin/indent: io.c Log Message: indent: remove dead code To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/usr.bin/indent/io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/indent/io.c diff -u src/usr.bin/indent/io.c:1.92 src/usr.bin/indent/io.c:1.93 --- src/usr.bin/indent/io.c:1.92 Sat Oct 9 11:13:25 2021 +++ src/usr.bin/indent/io.c Mon Oct 11 18:55:49 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: io.c,v 1.92 2021/10/09 11:13:25 rillig Exp $ */ +/* $NetBSD: io.c,v 1.93 2021/10/11 18:55:49 rillig Exp $ */ /*- * SPDX-License-Identifier: BSD-4-Clause @@ -43,7 +43,7 @@ static char sccsid[] = "@(#)io.c 8.1 (Be #include <sys/cdefs.h> #if defined(__NetBSD__) -__RCSID("$NetBSD: io.c,v 1.92 2021/10/09 11:13:25 rillig Exp $"); +__RCSID("$NetBSD: io.c,v 1.93 2021/10/11 18:55:49 rillig Exp $"); #elif defined(__FreeBSD__) __FBSDID("$FreeBSD: head/usr.bin/indent/io.c 334927 2018-06-10 16:44:18Z pstef $"); #endif @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD: head/usr.bin/indent/ #include "indent.h" -static bool comment_open; static int paren_indent; static int suppress_blanklines; @@ -107,11 +106,6 @@ dump_line_label(void) { int ind; - if (comment_open) { - comment_open = false; - output_string(".*/\n"); - } - while (lab.e > lab.s && is_hspace(lab.e[-1])) lab.e--; *lab.e = '\0'; @@ -151,10 +145,6 @@ dump_line_label(void) static int dump_line_code(int ind) { - if (comment_open) { - comment_open = false; - output_string(".*/\n"); - } int target_ind = compute_code_indent(); for (int i = 0; i < ps.p_l_follow; i++) {