From 7b0930d9ccea1260abcd6b855c4b44876c58a78a Mon Sep 17 00:00:00 2001 From: Brooks Moses Date: Mon, 26 Mar 2007 22:59:33 +0000 Subject: [PATCH] * error.c (show_locus): Remove always-false test. From-SVN: r123244 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/error.c | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index ed6419dff12..9e22baaf56f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2007-03-26 Brooks Moses + + * error.c (show_locus): Remove always-false test. + 2007-03-26 Brooks Moses * lang.opt: Minor edits to descriptions. diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c index 89cd4a9ac32..73488479a60 100644 --- a/gcc/fortran/error.c +++ b/gcc/fortran/error.c @@ -233,12 +233,6 @@ show_locus (locus *loc, int c1, int c2) if (cmax > terminal_width - 5) offset = cmax - terminal_width + 5; - /* TODO: Is there a good reason for the following apparently-redundant - check, and the similar ones in the single-locus cases below? */ - - if (offset < 0) - offset = 0; - /* Show the line itself, taking care not to print more than what can show up on the terminal. Tabs are converted to spaces, and nonprintable characters are converted to a "\xNN" sequence. */ -- 2.30.2