This patch removes code that has been unused since the project manager
infrastructure was retired.
gcc/ada/ChangeLog:
* fmap.ads (Add_Forbidden_File_Name): Remove obsolete code.
* fmap.adb (Forbidden_Names, Add_Forbidden_File_Name,
Mapped_Path_Name, Reset_Tables): Remove obsolete code.
Last_In_Table : Int := 0;
- package Forbidden_Names is new GNAT.HTable.Simple_HTable (
- Header_Num => Header_Num,
- Element => Boolean,
- No_Element => False,
- Key => File_Name_Type,
- Hash => Hash,
- Equal => "=");
-
- -----------------------------
- -- Add_Forbidden_File_Name --
- -----------------------------
-
- procedure Add_Forbidden_File_Name (Name : File_Name_Type) is
- begin
- Forbidden_Names.Set (Name, True);
- end Add_Forbidden_File_Name;
-
---------------------
-- Add_To_File_Map --
---------------------
Index : Int := No_Entry;
begin
- if Forbidden_Names.Get (File) then
- return Error_File_Name;
- end if;
-
Index := File_Hash_Table.Get (File);
if Index = No_Entry then
Path_Mapping.Init;
Unit_Hash_Table.Reset;
File_Hash_Table.Reset;
- Forbidden_Names.Reset;
Last_In_Table := 0;
end Reset_Tables;
procedure Reset_Tables;
-- Initialize all the internal data structures
- procedure Add_Forbidden_File_Name (Name : File_Name_Type);
- -- Indicate that a source file name is forbidden. This is used when there
- -- are excluded sources in projects (attributes Excluded_Source_Files or
- -- Locally_Removed_Files).
-
end Fmap;