Skip to content

Commit

Permalink
Remove chop_suffix since the local prefix isn't used anyhow.
Browse files Browse the repository at this point in the history
  • Loading branch information
skaller committed Sep 3, 2022
1 parent 9259788 commit 2c04361
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/compiler/flxg/flxg_parse.ml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,14 @@ let parse_file state parser_state file =
in

(* Shortcut variables. *)
let local_prefix = Filename.chop_suffix (Filename.basename file_name) ".flx" in
(*
let local_prefix =
try Filename.chop_suffix (Filename.basename file_name) ".flx"
with _ ->
print_endline ("Filename '" ^ file_name ^ "' expected to have suffix '.flx' but doesn't!");
assert false
in
*)
let include_dirs = state.syms.compiler_options.include_dirs in

(* Debugging. *)
Expand Down

0 comments on commit 2c04361

Please sign in to comment.