Remove unused function pr_mat()
authorkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Wed, 2 Nov 2011 00:42:55 +0000 (00:42 +0000)
committerkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Wed, 2 Nov 2011 00:42:55 +0000 (00:42 +0000)
git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/xpathcomp@1162 3cdefd35-fc62-479d-8e8d-bae585ffb9ca

src/main.ml

index 3932be6..76e321d 100644 (file)
@@ -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