Skip to content

Commit 2f7cd58

Browse files
committed
Remove unused RescriptCompilerApi.Compiler.ocamlCompile
1 parent dad68a1 commit 2f7cd58

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/bindings/RescriptCompilerApi.res

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -415,17 +415,6 @@ module Compiler = {
415415
}
416416
}
417417

418-
@send @scope("ocaml")
419-
external ocamlCompile: (t, string) => JSON.t = "compile"
420-
421-
let ocamlCompile = (t, code): CompilationResult.t => {
422-
let startTime = now()
423-
let json = ocamlCompile(t, code)
424-
let stopTime = now()
425-
426-
CompilationResult.decode(~time=stopTime -. startTime, json)
427-
}
428-
429418
@send external getConfig: t => Config.t = "getConfig"
430419

431420
@send external setFilename: (t, string) => bool = "setFilename"

src/bindings/RescriptCompilerApi.resi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ module Compiler: {
191191
* OCaml compiler actions (Note: no pretty print available for OCaml)
192192
*/
193193
let ocamlVersion: t => option<string>
194-
let ocamlCompile: (t, string) => CompilationResult.t
195194

196195
/*
197196
* Config setter / getters

0 commit comments

Comments
 (0)