* error.c (show_locus): Remove always-false test.
authorBrooks Moses <brooks.moses@codesourcery.com>
Mon, 26 Mar 2007 22:59:33 +0000 (22:59 +0000)
committerBrooks Moses <brooks@gcc.gnu.org>
Mon, 26 Mar 2007 22:59:33 +0000 (15:59 -0700)
From-SVN: r123244

gcc/fortran/ChangeLog
gcc/fortran/error.c

index ed6419dff12d24ad622c7c65c829b92c4d6ecb08..9e22baaf56f034efd3f7c1db7b29b2b5960985f7 100644 (file)
@@ -1,3 +1,7 @@
+2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
+       * error.c (show_locus): Remove always-false test.
+
 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
 
        * lang.opt: Minor edits to descriptions.
index 89cd4a9ac32636cb8bbf94ac16ceb57400f80a8e..73488479a60d1d8d6d42a882617acc11489af81b 100644 (file)
@@ -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.  */