diff options
author | Brian Callahan <bcallah@cvs.openbsd.org> | 2015-01-13 17:02:29 +0000 |
---|---|---|
committer | Brian Callahan <bcallah@cvs.openbsd.org> | 2015-01-13 17:02:29 +0000 |
commit | 05b9b4e27cdc1b0e1146bbafdef7c33467341a3f (patch) | |
tree | 7fdde457953e4f3e28bc57dc49e6aa7767b0ca6c | |
parent | f1f7085c2a28f8e0d1b498f95df67374782ec8eb (diff) |
Remove a variable that's not really being used.
ok deraadt@ jasper@
-rw-r--r-- | usr.bin/mg/cmode.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/mg/cmode.c b/usr.bin/mg/cmode.c index 8a0ff0c7679..1fdd78c6903 100644 --- a/usr.bin/mg/cmode.c +++ b/usr.bin/mg/cmode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmode.c,v 1.11 2015/01/02 11:43:15 lum Exp $ */ +/* $OpenBSD: cmode.c,v 1.12 2015/01/13 17:02:28 bcallah Exp $ */ /* * This file is in the public domain. * @@ -225,7 +225,6 @@ getindent(const struct line *lp, int *curi) int nparen = 0; /* paren count */ int obrace = 0; /* open brace count */ int cbrace = 0; /* close brace count */ - int contp = FALSE; /* Continue? */ int firstnwsp = FALSE; /* First nonspace encountered? */ int colonp = FALSE; /* Did we see a colon? */ int questionp = FALSE; /* Did we see a question mark? */ @@ -260,7 +259,6 @@ getindent(const struct line *lp, int *curi) c = lgetc(lp, co); /* We have a non-whitespace char */ if (!firstnwsp && !isspace(c)) { - contp = TRUE; if (c == '#') cppp = TRUE; firstnwsp = TRUE; @@ -283,7 +281,6 @@ getindent(const struct line *lp, int *curi) } else if (c == '{') { obrace++; firstnwsp = FALSE; - contp = FALSE; } else if (c == '}') { cbrace++; } else if (c == '?') { @@ -292,9 +289,6 @@ getindent(const struct line *lp, int *curi) /* ignore (foo ? bar : baz) construct */ if (!questionp) colonp = TRUE; - } else if (c == ';') { - if (nparen > 0) - contp = FALSE; } else if (c == '/') { /* first nonwhitespace? -> indent */ if (firstnwsp) { |