From: kim Date: Wed, 2 Nov 2011 00:42:55 +0000 (+0000) Subject: Remove unused function pr_mat() X-Git-Url: http://git.nguyen.vg/gitweb/?a=commitdiff_plain;h=d91456d4929e1e15a3d03bd956d28118aaef7a77;p=SXSI%2Fxpathcomp.git Remove unused function pr_mat() git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/xpathcomp@1162 3cdefd35-fc62-479d-8e8d-bae585ffb9ca --- diff --git a/src/main.ml b/src/main.ml index 3932be6..76e321d 100644 --- a/src/main.ml +++ b/src/main.ml @@ -20,30 +20,6 @@ let tuned_gc = { default_gc with } - -let pr_mat v r = - let () = - Printf.eprintf "Number of nodes in the result set : %i\n%!" - (NodeSet.Mat.length r); - in - if !Options.verbose then Printf.eprintf "Size of result set: %i kb\n" - (Ocaml.size_w r); - match !Options.output_file with - | None -> () - | Some f -> - let fd, finish = - if f = "-" then Unix.stdout, ignore - else - Unix.openfile f [ Unix.O_WRONLY; Unix.O_TRUNC; Unix.O_CREAT ] 0o666, - Unix.close - in - let () = - time ~msg:"Serializing results" - (NodeSet.Mat.iter (fun node -> Tree.print_xml v node fd)) r - in - Tree.flush v fd; - finish fd - let mk_runtime run auto doc arg count print outfile = fun () -> let r = time ~count:1 ~msg:"Execution time" (run auto doc) arg in