Skip to content

Commit

Permalink
Remove undefined function from interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 authored and georgeee committed Nov 27, 2023
1 parent 8b89917 commit 0dca053
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions src/lib/merkle_mask/maskable_merkle_tree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ module Make (Inputs : Inputs_intf) = struct
Node (summary, List.map masks ~f:(_crawl (module Mask.Attached)))
end

let unsafe_preload_accounts_from_parent =
Mask.Attached.unsafe_preload_accounts_from_parent

let register_mask t mask =
let attached_mask = Mask.set_parent mask t in
List.iter (Uuid.Table.data registered_masks) ~f:(fun ms ->
Expand Down
3 changes: 0 additions & 3 deletions src/lib/merkle_mask/maskable_merkle_tree_intf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ module type S = sig

val register_mask : t -> unattached_mask -> attached_mask

val unsafe_preload_accounts_from_parent :
attached_mask -> account_id list -> unit

(** raises an exception if mask is not registered *)
val unregister_mask_exn :
?grandchildren:
Expand Down
2 changes: 0 additions & 2 deletions src/lib/merkle_mask/masking_merkle_tree_intf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ module type S = sig
(* makes new mask instance with copied tables, re-use parent *)
val copy : t -> t

val unsafe_preload_accounts_from_parent : t -> account_id list -> unit

(** already have module For_testing from include above *)
module For_testing : sig
val location_in_mask : t -> location -> bool
Expand Down
3 changes: 0 additions & 3 deletions src/lib/mina_ledger/ledger.ml
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ module Ledger_inner = struct

let unregister_mask_exn ~loc mask = Maskable.unregister_mask_exn ~loc mask

let unsafe_preload_accounts_from_parent =
Maskable.unsafe_preload_accounts_from_parent

let remove_and_reparent_exn t t_as_mask =
Maskable.remove_and_reparent_exn (packed t) t_as_mask

Expand Down
3 changes: 0 additions & 3 deletions src/lib/mina_ledger/ledger.mli
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ include
*)
val unregister_mask_exn : loc:string -> Mask.Attached.t -> Mask.t

val unsafe_preload_accounts_from_parent :
Mask.Attached.t -> Account_id.t list -> unit

(* The maskable ledger is t = Mask.Attached.t because register/unregister
* work off of this type *)
type maskable_ledger = t
Expand Down
1 change: 0 additions & 1 deletion src/lib/staged_ledger/staged_ledger.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,6 @@ module T = struct
in
let new_mask = Ledger.Mask.create ~depth:(Ledger.depth t.ledger) () in
let new_ledger = Ledger.register_mask t.ledger new_mask in
Ledger.unsafe_preload_accounts_from_parent new_ledger [] ;
let transactions, works, commands_count, coinbases = pre_diff_info in
[%log internal] "Update_coinbase_stack"
~metadata:
Expand Down

0 comments on commit 0dca053

Please sign in to comment.