diff options
| author | letouzey | 2011-09-22 18:02:47 +0000 |
|---|---|---|
| committer | letouzey | 2011-09-22 18:02:47 +0000 |
| commit | e15d40ac526eeac7c725e4defc2ddb9dde56212a (patch) | |
| tree | 35e1699c7211453b6d72f1f3537151b3d310ee2d | |
| parent | eec7f689159ab88d81e03b90e8ca7c23c2366084 (diff) | |
Remove duplicated version of check_required_library.
Signed-off-by: Tom Prince <tom.prince@ualberta.net>
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14486 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | tactics/rewrite.ml4 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tactics/rewrite.ml4 b/tactics/rewrite.ml4 index 5400827bcf..c908f71885 100644 --- a/tactics/rewrite.ml4 +++ b/tactics/rewrite.ml4 @@ -40,18 +40,12 @@ open Compat (** Typeclass-based generalized rewriting. *) -let check_required_library d = - let d' = List.map id_of_string d in - let dir = make_dirpath (List.rev d') in - if not (Library.library_is_loaded dir) then - error ("Library "^(list_last d)^" has to be required first.") - let classes_dirpath = make_dirpath (List.map id_of_string ["Classes";"Coq"]) let init_setoid () = if is_dirpath_prefix_of classes_dirpath (Lib.cwd ()) then () - else check_required_library ["Coq";"Setoids";"Setoid"] + else Coqlib.check_required_library ["Coq";"Setoids";"Setoid"] let proper_class = lazy (class_info (Nametab.global (Qualid (dummy_loc, qualid_of_string "Coq.Classes.Morphisms.Proper")))) |
