From 3f088c35ec0faa8493b938c73443150d75722f63 Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Tue, 8 Apr 2008 08:53:42 +0200 Subject: [PATCH] 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 --- gcc/ada/nlists.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; ---------- -- 2.30.2