aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorThomas Quinot <quinot@adacore.com>2008-04-08 08:53:42 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-04-08 08:53:42 +0200
commit3f088c35ec0faa8493b938c73443150d75722f63 (patch)
treef047a54aedc12c01d0b530c054b16fca17410576 /gcc/ada
parentdba1712345b32f244e319c7d045284e160747d73 (diff)
downloadgcc-3f088c35ec0faa8493b938c73443150d75722f63.zip
gcc-3f088c35ec0faa8493b938c73443150d75722f63.tar.gz
gcc-3f088c35ec0faa8493b938c73443150d75722f63.tar.bz2
nlists.adb (Is_Non_Empty_List): Remove redundant test.
2008-04-08 Thomas Quinot <quinot@adacore.com> * nlists.adb (Is_Non_Empty_List): Remove redundant test. First (No_List) is defined to return Empty. From-SVN: r134042
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/nlists.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/nlists.adb b/gcc/ada/nlists.adb
index 768e130..e809d15 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;
----------