Skip to content

Commit

Permalink
remove obsolete 4.08 polyfills (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennsl authored Feb 6, 2020
1 parent 26f25df commit 2f6f985
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
22 changes: 0 additions & 22 deletions src/Core/Float.ml

This file was deleted.

6 changes: 0 additions & 6 deletions src/Core/Revery_Core.re
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,3 @@ module Internal = {
};

module Tick = Tick.Default;

/**
* Polyfill for a couple 4.08 function.
* TODO: Remove after moving oni2 to 4.08
*/
module Float = Float;
24 changes: 0 additions & 24 deletions src/UI_Components/Input.re
Original file line number Diff line number Diff line change
Expand Up @@ -47,30 +47,6 @@ module Cursor = {
};
};

// TODO: remove after 4.08
module Option = {
let value = (~default) =>
fun
| Some(x) => x
| None => default;

let bind = (o, f) =>
switch (o) {
| Some(x) => f(x)
| None => None
};

let map = f =>
fun
| Some(x) => Some(f(x))
| None => None;

let join =
fun
| Some(x) => x
| None => None;
};

type state = {
isFocused: bool, // TODO: Violates single source of truth
value: string,
Expand Down

0 comments on commit 2f6f985

Please sign in to comment.