summaryrefslogtreecommitdiff
path: root/gcc/ada/clean.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-29 09:52:34 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-29 09:52:34 +0000
commit01c4bd876d20302ce2113967ce7a1202805f4e23 (patch)
tree8c7c972f643916965294bb7ff102908a09236dcf /gcc/ada/clean.adb
parent38d994f8f5595af5eb69c473c3acb5d724d67d18 (diff)
downloadgcc-01c4bd876d20302ce2113967ce7a1202805f4e23.tar.gz
2009-04-29 Emmanuel Briot <briot@adacore.com>
* prj-ext.adb, prj.adb, prj.ads: Fix memory leaks. * clean.adb (Ultimate_Extension_Of): removed, since duplicate of Prj.Ultimate_Extending_Project_Of git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146940 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/clean.adb')
-rw-r--r--gcc/ada/clean.adb31
1 files changed, 4 insertions, 27 deletions
diff --git a/gcc/ada/clean.adb b/gcc/ada/clean.adb
index 54b408affe0..eac192903b3 100644
--- a/gcc/ada/clean.adb
+++ b/gcc/ada/clean.adb
@@ -242,11 +242,6 @@ package body Clean is
-- Returns True iff Prj is an extension of Of_Project or if Of_Project is
-- an extension of Prj.
- function Ultimate_Extension_Of (Project : Project_Id) return Project_Id;
- -- Returns either Project, if it is not extended by another project, or
- -- the project that extends Project, directly or indirectly, and that is
- -- not itself extended. Returns No_Project if Project is No_Project.
-
procedure Usage;
-- Display the usage. If called several times, the usage is displayed only
-- the first time.
@@ -582,7 +577,7 @@ package body Clean is
loop
Unit := Project_Tree.Units.Table (Index);
- if Ultimate_Extension_Of
+ if Ultimate_Extending_Project_Of
(Unit.File_Names (Body_Part).Project) = Project
and then
Get_Name_String
@@ -593,7 +588,7 @@ package body Clean is
exit;
end if;
- if Ultimate_Extension_Of
+ if Ultimate_Extending_Project_Of
(Unit.File_Names (Specification).Project) = Project
and then
Get_Name_String
@@ -749,7 +744,7 @@ package body Clean is
if Unit.File_Names (Body_Part).Project /=
No_Project
then
- if Ultimate_Extension_Of
+ if Ultimate_Extending_Project_Of
(Unit.File_Names (Body_Part).Project) =
Project
then
@@ -766,7 +761,7 @@ package body Clean is
end if;
end if;
- elsif Ultimate_Extension_Of
+ elsif Ultimate_Extending_Project_Of
(Unit.File_Names (Specification).Project) =
Project
then
@@ -1905,24 +1900,6 @@ package body Clean is
return Src & Tree_Suffix;
end Tree_File_Name;
- ---------------------------
- -- Ultimate_Extension_Of --
- ---------------------------
-
- function Ultimate_Extension_Of (Project : Project_Id) return Project_Id is
- Result : Project_Id := Project;
-
- begin
- if Project /= No_Project then
- loop
- exit when Result.Extended_By = No_Project;
- Result := Result.Extended_By;
- end loop;
- end if;
-
- return Result;
- end Ultimate_Extension_Of;
-
-----------
-- Usage --
-----------