Skip to content

Commit

Permalink
Merge branch 'mr/pmderodat/master' into 'master'
Browse files Browse the repository at this point in the history
Laltools.Common: remove "<" for Source_Location_Range

See merge request eng/ide/libadalang-tools!252
  • Loading branch information
setton committed Oct 14, 2024
2 parents 1759464 + 948a517 commit fd547cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
13 changes: 0 additions & 13 deletions src/laltools-common.adb
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,6 @@ package body Laltools.Common is
Message : String := "");
-- Log an exception in the given traces, with an optional message.

---------
-- "<" --
---------

function "<" (Left, Right : Source_Location_Range) return Boolean is
begin
if Left.Start_Line = Right.Start_Line then
return Left.Start_Column < Right.Start_Column;
end if;

return Left.Start_Line < Right.Start_Line;
end "<";

------------------------
-- Append_If_Not_Null --
------------------------
Expand Down
6 changes: 0 additions & 6 deletions src/laltools-common.ads
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ package Laltools.Common is
-- If Left.Text = Right.Text then Full_Sloc_Image will sort first by
-- file and then by Sloc (first by line and then by column).

function "<"
(Left, Right : Source_Location_Range)
return Boolean;
-- Checks if L is < than R, first based on the line number and then on
-- the column number

function "<" (Left, Right : Base_Id) return Boolean is
(Left.Text < Right.Text
or else Left.Sloc_Range < Right.Sloc_Range);
Expand Down

0 comments on commit fd547cf

Please sign in to comment.