]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/grafite/grafiteMarshal.ml
Bug fixed: heuristic to detect real URIs used to raise an exception.
[helm.git] / matita / components / grafite / grafiteMarshal.ml
index 15e4f5217cf054dc0e93995d71fc009a66546ecd..d18ee2f0c894fd12396067e80be1ec09c21cde05 100644 (file)
@@ -25,7 +25,7 @@
 
 (* $Id$ *)
 
-type ast_command = (Cic.term,Cic.obj) GrafiteAst.command
+type ast_command = GrafiteAst.command
 type moo = ast_command list
 
 let format_name = "grafite"
@@ -38,18 +38,13 @@ let load_moo_from_file ~fname =
   (raw: moo)
 
 let rehash_cmd_uris =
-  let rehash_uri uri =
-    UriManager.uri_of_string (UriManager.string_of_uri uri) in
   function
-  | GrafiteAst.Default (loc, name, uris) ->
-      let uris = List.map rehash_uri uris in
-      GrafiteAst.Default (loc, name, uris)
   | GrafiteAst.Include _ as cmd -> cmd
   | cmd ->
       prerr_endline "Found a command not expected in a .moo:";
       let term_pp _ = assert false in
       let obj_pp _ = assert false in
-      prerr_endline (GrafiteAstPp.pp_command ~term_pp ~obj_pp cmd);
+      prerr_endline (GrafiteAstPp.pp_command cmd);
       assert false
 
 let save_moo ~fname moo = save_moo_to_file ~fname (List.rev moo)