X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.ml;h=34cf20afa4eb42bb0232ee13cd680e9faf024137;hb=fb53caa837dad54352753c100094027dd8e45334;hp=8915f7681270ad43bdb94a009047820ac657f10d;hpb=a7b90d2494f7d580faa54ecd2835bd4649129763;p=helm.git diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index 8915f7681..34cf20afa 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -401,12 +401,6 @@ let instance = singleton gui let non p x = not (p x) -let is_var_uri s = - let s = UriManager.string_of_uri s in - try - String.sub s (String.length s - 4) 4 = ".var" - with Invalid_argument _ -> false - (* this is a shit and should be changed :-{ *) let interactive_uri_choice ?(selection_mode:[`SINGLE|`MULTIPLE] = `MULTIPLE) ?(title = "") @@ -416,7 +410,7 @@ let interactive_uri_choice ~id uris = let gui = instance () in - let nonvars_uris = lazy (List.filter (non is_var_uri) uris) in + let nonvars_uris = lazy (List.filter (non UriManager.uri_is_var) uris) in if (selection_mode <> `SINGLE) && (Helm_registry.get_bool "matita.auto_disambiguation") then