Skip to content

Commit 79ac979

Browse files
committed
Remove renamed usages
1 parent 10e96d8 commit 79ac979

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

source/Ast.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ type expression =
7070
(* .[] *)
7171
(* map(x) *)
7272
| Slice of int option * int option
73-
(* slice(Some 1, Some 10), slice(None, Some 10), slice(Some 1, None) *)
7473
| Flat_map of expression (* flat_map(x) *)
7574
| Reduce of expression (* reduce(x) *)
7675
| Select of expression (* select(x) *)

source/Console.ml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ module Errors = struct
3737
^ String.make start.pos_cnum ' '
3838
^ Chalk.gray pointer_range
3939

40-
let renamed f name =
41-
Formatting.single_quotes f ^ " is not valid in q, use "
42-
^ Formatting.single_quotes name
43-
^ " instead"
44-
4540
let not_implemented f = Formatting.single_quotes f ^ " is not implemented"
4641

4742
let missing f =

source/Parser.mly

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,11 @@ term:
194194
| "from_entries" -> From_entries
195195
| "with_entries" -> With_entries
196196
| "nan" -> Nan
197+
| "isnan" (* for backward compatibility *)
197198
| "is_nan" -> Is_nan
198199
| "not" -> Not
199200
| "abs" -> Fun (Absolute)
200201
| "add" -> Fun (Add)
201-
(* TODO: remove failwiths once we have implemented the functions *)
202-
| "isnan" -> failwith @@ Console.Errors.renamed f "is_nan"
203-
| "isinfinite" -> failwith @@ Console.Errors.renamed f "is_infinite"
204-
| "isfinite" -> failwith @@ Console.Errors.renamed f "is_finite"
205-
| "isnormal" -> failwith @@ Console.Errors.renamed f "is_normal"
206202
| _ -> failwith @@ Console.Errors.missing f
207203
}
208204
| OPEN_BRACKET; CLOSE_BRACKET;

0 commit comments

Comments
 (0)