Skip to content

Commit

Permalink
Remove unused reset_terminal hook
Browse files Browse the repository at this point in the history
This is unused, as well as the associated cleanup function.
  • Loading branch information
emillon committed Apr 21, 2023
1 parent 2ca40e3 commit 828a890
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ let find () =
OS.File.exists file >>= fun exists ->
if exists then OS.File.read file >>= of_yaml >>| fun x -> Some x else Ok None

let reset_terminal : (unit -> unit) option ref = ref None
let cleanup () = match !reset_terminal with None -> () | Some f -> f ()
let () = at_exit cleanup
let token_file () = config_dir () >>= fun cfg -> Ok Fpath.(cfg / "github.token")

let get_token () =
Expand Down

0 comments on commit 828a890

Please sign in to comment.