mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2024-10-01 01:05:39 -04:00
Removed unused function
This commit is contained in:
parent
61c4c730d4
commit
1779f0fdbe
6
utils.ml
6
utils.ml
@ -60,12 +60,6 @@ let error fmt =
|
||||
let return = Lwt.return
|
||||
let fail = Lwt.fail
|
||||
|
||||
(* Copy str to the start of buffer and fill the rest with zeros *)
|
||||
let set_fixed_string buffer str =
|
||||
let len = String.length str in
|
||||
Cstruct.blit_from_string str 0 buffer 0 len;
|
||||
Cstruct.memset (Cstruct.shift buffer len) 0
|
||||
|
||||
let or_fail msg = function
|
||||
| `Ok x -> return x
|
||||
| `Error _ -> fail (Failure msg)
|
||||
|
Loading…
Reference in New Issue
Block a user