From: Thomas Quinot Date: Tue, 8 Apr 2008 06:53:42 +0000 (+0200) Subject: nlists.adb (Is_Non_Empty_List): Remove redundant test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f088c35ec0faa8493b938c73443150d75722f63;p=gcc.git nlists.adb (Is_Non_Empty_List): Remove redundant test. 2008-04-08 Thomas Quinot * nlists.adb (Is_Non_Empty_List): Remove redundant test. First (No_List) is defined to return Empty. From-SVN: r134042 --- diff --git a/gcc/ada/nlists.adb b/gcc/ada/nlists.adb index 768e130dce5..e809d15ebb6 100644 --- a/gcc/ada/nlists.adb +++ b/gcc/ada/nlists.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -604,7 +604,7 @@ package body Nlists is function Is_Non_Empty_List (List : List_Id) return Boolean is begin - return List /= No_List and then First (List) /= Empty; + return First (List) /= Empty; end Is_Non_Empty_List; ----------