Removed unused function

This commit is contained in:
Thomas Leonard 2016-01-02 15:27:25 +00:00
parent 61c4c730d4
commit 1779f0fdbe

View File

@ -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)