From e15d40ac526eeac7c725e4defc2ddb9dde56212a Mon Sep 17 00:00:00 2001 From: letouzey Date: Thu, 22 Sep 2011 18:02:47 +0000 Subject: Remove duplicated version of check_required_library. Signed-off-by: Tom Prince git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14486 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tactics/rewrite.ml4 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tactics') 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")))) -- cgit v1.2.3