Skip to content

Commit

Permalink
props.ml: Remove dead code about 1 hour deltas
Browse files Browse the repository at this point in the history
  • Loading branch information
gdt committed Jun 10, 2024
1 parent 375ea3a commit b10f9dd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/props.ml
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,6 @@ let extract t = match t with Synced v -> v | NotSynced v -> v
let minus_two = Int64.of_int (-2)
let approximate t = Int64.logand (Int64.of_float t) minus_two

let oneHour = Int64.of_int 3600
let minusOneHour = Int64.neg oneHour
let moduloOneHour t =
let v = Int64.rem t oneHour in
if v >= Int64.zero then v else Int64.add v oneHour

(* Accept one hour differences and one second differences *)
let possible_deltas =
[ -3601L; 3601L; -3600L; 3600L; -3599L; 3599L; -1L; 1L; 0L ]
Expand Down

0 comments on commit b10f9dd

Please sign in to comment.