Skip to content

Commit

Permalink
remove unnecessary pretty-printer
Browse files Browse the repository at this point in the history
  • Loading branch information
patricoferris committed Mar 18, 2021
1 parent 59426ac commit dddf770
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
17 changes: 0 additions & 17 deletions lib/runc_sandbox.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ type config = {
fast_sync : bool;
} [@@deriving sexp]

let pp ppf =
let fields =
[
Fmt.field ~label:Fmt.string "runc_state_dir"
(fun (t : t) -> t.runc_state_dir)
Fmt.string;
Fmt.field ~label:Fmt.string "fast_sync"
(fun (t : t) -> t.fast_sync)
Fmt.bool;
Fmt.field ~label:Fmt.string "arches"
(fun (t : t) -> t.arches)
Fmt.(brackets @@ list ~sep:comma string);
]
in
let r = Fmt.(braces @@ record fields) in
Fmt.(pf ppf "runc state:@, %a" r)

let get_machine () =
let ch = Unix.open_process_in "uname -m" in
let arch = input_line ch in
Expand Down
3 changes: 0 additions & 3 deletions lib/s.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ end
module type SANDBOX = sig
type t

val pp : t Fmt.t
(** A pretty-printer for sandbox environments *)

type config [@@deriving sexp]
(** The type of sandbox configurations *)

Expand Down
7 changes: 0 additions & 7 deletions test/mock_sandbox.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ type config = {
dir : string;
}[@@deriving sexp]

let pp ppf =
let fields = [
Fmt.field ~label:Fmt.string "dir" (fun (t : t) -> t.dir) Fmt.string;
] in
let r = Fmt.(braces @@ record fields) in
Fmt.(pf ppf "mock = %a" r)

module Saved_context = struct
type t = {
env : Config.env;
Expand Down

0 comments on commit dddf770

Please sign in to comment.