Skip to content

Commit

Permalink
Fix some warnings; remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmundkur committed Dec 6, 2012
1 parent 9e1168f commit f3f3857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 2 additions & 12 deletions lib/protocol.ml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ let string_of_scheme = function
| Http -> "http"
| Other s -> s

let scheme_of_uri uri =
match uri.Uri.scheme with
| None -> File
| Some "dir" -> Dir
| Some "disco" -> Disco
| Some "file" -> File
| Some "raw" -> Raw
| Some "http" -> Http
| Some s -> Other s

type task_input_status =
| Task_input_more
| Task_input_done
Expand Down Expand Up @@ -177,7 +167,7 @@ let tIMEOUT = 5.0 *. 60.0 (* in seconds *)
*)

let bUFLEN = 1024
let rec get_raw_master_msg ic =
let get_raw_master_msg ic =
let msg = ref None in
let process_prefix p =
let tag, rem = split p in
Expand All @@ -198,7 +188,7 @@ let rec get_raw_master_msg ic =
| None -> None) in

let ifd = Unix.descr_of_in_channel ic in
let rec do_read () =
let do_read () =
let len = Unix.read ifd buf !ofs (String.length buf - !ofs) in
match !msg with
| None ->
Expand Down
4 changes: 0 additions & 4 deletions lib/worker.ml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ type resolved_input =
| Inp_replicas of P.input_id * L.label * (P.replica_id * Uri.t) list
| Inp_splits of P.input_id * P.replica_id * (L.label * Uri.t) list

let id_of_resolved_input = function
| Inp_replicas (id, _, _)
| Inp_splits (id, _, _) -> id

(* The first pass of input processing resolves any Dir or Dir_indexed
inputs, by fetching the specified index files and processing the
entries as specified. *)
Expand Down

0 comments on commit f3f3857

Please sign in to comment.