diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-04-08 17:23:13 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-04-08 17:23:13 +0000 |
commit | f8b5525eea31c226dfb2ebdc22be512f8af2ebbe (patch) | |
tree | 2e3783d78cb21cd4e5b5cbbfe02ecfce40acc959 /library/declaremods.ml | |
parent | e285c447b9bc478f9c9fc7b2459a7e9a11b5358c (diff) |
Some dead code removal + cleanups
This commit concerns about the first half of the useless code
mentionned by Oug for coqtop (without plugins). For the moment,
Oug is used in a mode where any elements mentionned in a .mli
is considered to be precious. This already allows to detect and
remove about 600 lines, and more is still to come.
Among the interesting points, the type Entries.specification_entry
and its constructors SPExxx were never used. Large parts of cases.ml
(and hence subtac_cases.ml) were also useless.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12069 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/declaremods.ml')
-rw-r--r-- | library/declaremods.ml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml index 129ea4ef2..52fa94569 100644 --- a/library/declaremods.ml +++ b/library/declaremods.ml @@ -114,11 +114,6 @@ let mp_of_kn kn = else anomaly ("Non-empty section in module name!" ^ string_of_kn kn) -let is_bound mp = - match mp with - | MPbound _ -> true - | _ -> false - let dir_of_sp sp = let dir,id = repr_path sp in extend_dirpath dir id @@ -490,7 +485,7 @@ let open_keep i ((sp,kn),seg) = let dirpath,mp = dir_of_sp sp, mp_of_kn kn in open_objects i (dirpath,(mp,empty_dirpath)) seg -let (in_modkeep,out_modkeep) = +let (in_modkeep,_) = declare_object {(default_object "MODULE KEEP OBJECTS") with cache_function = cache_keep; load_function = load_keep; @@ -575,7 +570,7 @@ let classify_modtype (_,(_,substobjs)) = Substitute (None,substobjs) -let (in_modtype,out_modtype) = +let (in_modtype,_) = declare_object {(default_object "MODULE TYPE") with cache_function = cache_modtype; open_function = open_modtype; @@ -859,7 +854,7 @@ let subst_import (_,subst,(export,mp as obj)) = if mp'==mp then obj else (export,mp') -let (in_import,out_import) = +let (in_import,_) = declare_object {(default_object "IMPORT MODULE") with cache_function = cache_import; open_function = (fun i o -> if i=1 then cache_import o); |