X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaDb.ml;h=c5bdbf84befc7dcbf595ed0a5d633b348108acea;hb=6cf15c86b051582032c794f7da8a325e31fc0480;hp=d4f5d01b1979246528a51eee128d46e4e175d214;hpb=7d425434a70ed1eae2ef83ebff5adbbbeeaec099;p=helm.git diff --git a/helm/matita/matitaDb.ml b/helm/matita/matitaDb.ml index d4f5d01b1..c5bdbf84b 100644 --- a/helm/matita/matitaDb.ml +++ b/helm/matita/matitaDb.ml @@ -112,7 +112,7 @@ let create_owner_environment () = (* removes uri from the ownerized tables, and returns the list of other objects * (theyr uris) that ref the one removed. * AFAIK there is no need to return it, since the MatitaTypes.staus should - * contain all defined objects. but to double ckeck we do not garbage the + * contain all defined objects. but to double check we do not garbage the * metadata... *) let remove_uri uri = @@ -146,13 +146,7 @@ let remove_uri uri = let l = ref [] in Mysql.iter rc (fun a -> match a.(0) with None ->()|Some a -> l := a:: !l); let l = List.sort Pervasives.compare !l in - let rec uniq = function - | [] -> [] - | h::[] -> [h] - | h1::h2::tl when h1 = h2 -> uniq (h2 :: tl) - | h1::tl (* when h1 <> h2 *) -> h1 :: uniq tl - in - uniq l + MatitaMisc.list_uniq l with exn -> raise exn (* no errors should be accepted *)