]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic/unshare.ml
removed no longer used METAs
[helm.git] / helm / ocaml / cic / unshare.ml
index 10f4f3df4b987dac17fe266dd2d3c824a2f8707c..e198bcd49df1c79fa3235da0c75bcb2f18e6bcb8 100644 (file)
@@ -23,6 +23,8 @@
  * http://cs.unibo.it/helm/.
  *)
 
+(* $Id$ *)
+
 let rec unshare =
  let module C = Cic in
   function
@@ -41,8 +43,8 @@ let rec unshare =
         ) l
       in
        C.Meta(i,l')
-   | C.Sort _ as t -> t
-   | C.Implicit _ as t -> t
+   | C.Sort s -> C.Sort s
+   | C.Implicit info -> C.Implicit info
    | C.Cast (te,ty) -> C.Cast (unshare te, unshare ty)
    | C.Prod (n,s,t) -> C.Prod (n, unshare s, unshare t)
    | C.Lambda (n,s,t) -> C.Lambda (n, unshare s, unshare t)
@@ -67,7 +69,6 @@ let rec unshare =
       C.MutCase (sp, i, unshare outty, unshare t,
        List.map unshare pl)
    | C.Fix (i, fl) ->
-      let len = List.length fl in
       let liftedfl =
        List.map
         (fun (name, i, ty, bo) -> (name, i, unshare ty, unshare bo))
@@ -75,7 +76,6 @@ let rec unshare =
       in
        C.Fix (i, liftedfl)
    | C.CoFix (i, fl) ->
-      let len = List.length fl in
       let liftedfl =
        List.map
         (fun (name, ty, bo) -> (name, unshare ty, unshare bo))