Skip to content

Commit 3185a43

Browse files
authored
xapi: Cleanup unused functions (#6477)
`Helpers.progress`' only user was `Xapi_vm.immediate_complete`, which wasn't used anywhere. Remove both. No functional changes.
2 parents 17181ca + 9ba2d65 commit 3185a43

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

ocaml/xapi/helpers.ml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -606,14 +606,6 @@ let call_emergency_mode_functions hostname f =
606606
(fun () -> f rpc session_id)
607607
(fun () -> Client.Client.Session.local_logout ~rpc ~session_id)
608608

609-
let progress ~__context t =
610-
for i = 0 to int_of_float (t *. 100.) do
611-
let v = float_of_int i /. 100. /. t in
612-
TaskHelper.set_progress ~__context v ;
613-
Thread.delay 1.
614-
done ;
615-
TaskHelper.set_progress ~__context 1.
616-
617609
let is_domain_zero_with_record ~__context vm_ref vm_rec =
618610
let host_ref = vm_rec.API.vM_resident_on in
619611
vm_rec.API.vM_is_control_domain

ocaml/xapi/xapi_vm.ml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ let retrieve_wlb_recommendations ~__context ~vm =
8989

9090
let assert_agile ~__context ~self = Agility.vm_assert_agile ~__context ~self
9191

92-
(* helpers *)
93-
let immediate_complete ~__context = Helpers.progress ~__context (0.0 -. 1.0)
94-
9592
(* API *)
9693
let set_actions_after_crash ~__context ~self ~value =
9794
set_actions_after_crash ~__context ~self ~value

ocaml/xapi/xapi_vm.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ val retrieve_wlb_recommendations :
3232

3333
val assert_agile : __context:Context.t -> self:[`VM] Ref.t -> unit
3434

35-
val immediate_complete : __context:Context.t -> unit
36-
3735
val set_actions_after_crash :
3836
__context:Context.t
3937
-> self:[`VM] Ref.t

0 commit comments

Comments
 (0)