aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-stmts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-09-26 09:11:33 +0200
committerTristan Gingold <tgingold@free.fr>2020-09-26 09:11:33 +0200
commitc389c4fc8b65357e8075731323f4ba188817c134 (patch)
tree58457b56b7bac1da744c5f4ea6c4930ee6032e67 /src/synth/synth-stmts.adb
parent8269262a63906c16f4fc2fd3c17fc91216eb7f09 (diff)
downloadghdl-c389c4fc8b65357e8075731323f4ba188817c134.tar.gz
ghdl-c389c4fc8b65357e8075731323f4ba188817c134.tar.bz2
ghdl-c389c4fc8b65357e8075731323f4ba188817c134.zip
synth: minor refactoring. Move In_Bounds/In_Range to synth-objtypes.
Diffstat (limited to 'src/synth/synth-stmts.adb')
-rw-r--r--src/synth/synth-stmts.adb10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb
index b5d10b084..cdb52a66c 100644
--- a/src/synth/synth-stmts.adb
+++ b/src/synth/synth-stmts.adb
@@ -2195,16 +2195,6 @@ package body Synth.Stmts is
end case;
end Synth_Procedure_Call;
- function In_Range (Rng : Discrete_Range_Type; V : Int64) return Boolean is
- begin
- case Rng.Dir is
- when Dir_To =>
- return V >= Rng.Left and then V <= Rng.Right;
- when Dir_Downto =>
- return V <= Rng.Left and then V >= Rng.Right;
- end case;
- end In_Range;
-
procedure Update_Index (Rng : Discrete_Range_Type; V : in out Valtyp)
is
T : Int64;