Skip to content

Commit 4c54fca

Browse files
committed
Remove git hash from playground
1 parent 2e5c7b6 commit 4c54fca

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

bindings/Bs_platform_api.re

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,6 @@ module Compiler = {
299299
[@bs.val] [@bs.scope "bs_platform"] external make: unit => t = "make";
300300

301301
[@bs.get] external version: t => string = "version";
302-
[@bs.get]
303-
external version_git_commit: t => option(string) = "version_git_commit";
304302

305303
/*
306304
Res compiler actions

re_pages/Playground.re

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ module ErrorPane = {
287287

288288
let renderResult =
289289
(
290-
~compilerVersionGitCommit: option(string)=?,
291290
~focusedRowCol: option((int, int)),
292291
~targetLang: Api.Lang.t,
293292
~compilerVersion: string,
@@ -413,13 +412,8 @@ module ErrorPane = {
413412
</div>;
414413
| Nothing =>
415414
let syntax = Api.Lang.toString(targetLang);
416-
let fullVersion =
417-
switch (compilerVersionGitCommit) {
418-
| Some(gitCommit) => compilerVersion ++ " (" ++ gitCommit ++ ")"
419-
| None => compilerVersion
420-
};
421415
<PreWrap>
422-
{j|This playground is now running on compiler version $fullVersion with $syntax syntax|j}
416+
{j|This playground is now running on compiler version $compilerVersion with $syntax syntax|j}
423417
->s
424418
</PreWrap>;
425419
};
@@ -464,7 +458,6 @@ module ErrorPane = {
464458
~actionIndicatorKey: string,
465459
~targetLang: Api.Lang.t,
466460
~compilerVersion: string,
467-
~compilerVersionGitCommit: option(string)=?,
468461
~focusedRowCol: option((int, int))=?,
469462
~result: FinalResult.t,
470463
) => {
@@ -506,7 +499,6 @@ module ErrorPane = {
506499
<div className="">
507500
<div className="bg-night-dark text-snow-darker px-4 py-4">
508501
{renderResult(
509-
~compilerVersionGitCommit?,
510502
~focusedRowCol,
511503
~compilerVersion,
512504
~targetLang,
@@ -1592,8 +1584,6 @@ module Button = {
15921584
| _ => false
15931585
};
15941586

1595-
let compilerVersionGitCommit =
1596-
Api.Compiler.version_git_commit(ready.selected.instance);
15971587
<>
15981588
<ControlPanel
15991589
isCompilerSwitching
@@ -1613,7 +1603,6 @@ module Button = {
16131603
actionIndicatorKey
16141604
targetLang={ready.targetLang}
16151605
compilerVersion={ready.selected.compilerVersion}
1616-
?compilerVersionGitCommit
16171606
?focusedRowCol
16181607
result={ready.result}
16191608
/>

0 commit comments

Comments
 (0)