@@ -158,22 +158,6 @@ package body LSP.Ada_Contexts is
158158 return Source_Units;
159159 end Analysis_Units ;
160160
161- -- ---------------------------
162- -- List_Source_Directories --
163- -- ---------------------------
164-
165- function List_Source_Directories
166- (Self : Context;
167- Include_Externally_Built : Boolean := False)
168- return LSP.Ada_File_Sets.File_Sets.Set is
169- begin
170- if Include_Externally_Built then
171- return Self.Source_Dirs.Union (Self.External_Source_Dirs);
172- else
173- return Self.Source_Dirs;
174- end if ;
175- end List_Source_Directories ;
176-
177161 -- --------------------------
178162 -- List_Source_Externsion --
179163 -- --------------------------
@@ -685,15 +669,9 @@ package body LSP.Ada_Contexts is
685669
686670 procedure Add_Dirs_From_View (View : GPR2.Project.View.Object) is
687671 begin
688- if View.Is_Externally_Built then
689- for Dir of View.Source_Directories loop
690- Self.External_Source_Dirs.Include (Dir.Virtual_File);
691- end loop ;
692- else
693- for Dir of View.Source_Directories loop
694- Self.Source_Dirs.Include (Dir.Virtual_File);
695- end loop ;
696- end if ;
672+ for Dir of View.Source_Directories loop
673+ Self.Source_Dirs.Include (Dir.Virtual_File);
674+ end loop ;
697675 end Add_Dirs_From_View ;
698676
699677 begin
@@ -702,7 +680,6 @@ package body LSP.Ada_Contexts is
702680 Process_Closure (Root, Add_Sources_From_View'Access );
703681
704682 Self.Source_Dirs.Clear;
705- Self.External_Source_Dirs.Clear;
706683
707684 Process_Closure (Root, Add_Dirs_From_View'Access );
708685
0 commit comments