aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2012-10-16 02:01:33 +0000
committerherbelin2012-10-16 02:01:33 +0000
commita4b80ae55c5b1fc8b6c8ad5028a359cd6d5d6ce8 (patch)
treecf4e77fc24bff4f4d852006c412d0c4020e08be0
parente7cb2935f99b0462410bdf4e9fc8e6692ed4f2c9 (diff)
Removed dead code about linking Module names in coqdoc.
Code was probably unused since scan_file made obsolete in r11024. See also r12890. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15892 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--tools/coqdoc/index.ml1
-rw-r--r--tools/coqdoc/index.mli3
-rw-r--r--tools/coqdoc/output.ml20
3 files changed, 2 insertions, 22 deletions
diff --git a/tools/coqdoc/index.ml b/tools/coqdoc/index.ml
index 026595b6b7..a39b787956 100644
--- a/tools/coqdoc/index.ml
+++ b/tools/coqdoc/index.ml
@@ -33,7 +33,6 @@ type entry_type =
type index_entry =
| Def of string * entry_type
| Ref of coq_module * string * entry_type
- | Mod of coq_module * string
let current_library = ref ""
(** refers to the file being parsed *)
diff --git a/tools/coqdoc/index.mli b/tools/coqdoc/index.mli
index 8c658a907d..0f62a086ed 100644
--- a/tools/coqdoc/index.mli
+++ b/tools/coqdoc/index.mli
@@ -34,10 +34,11 @@ val type_name : entry_type -> string
type index_entry =
| Def of string * entry_type
| Ref of coq_module * string * entry_type
- | Mod of coq_module * string
+(* Find what symbol coqtop said is located at loc in the source file *)
val find : coq_module -> loc -> index_entry
+(* Find what data is referred to by some string in some coq module *)
val find_string : coq_module -> string -> index_entry
val add_module : coq_module -> unit
diff --git a/tools/coqdoc/output.ml b/tools/coqdoc/output.ml
index a0f36d9a1f..61c18f9e49 100644
--- a/tools/coqdoc/output.ml
+++ b/tools/coqdoc/output.ml
@@ -327,9 +327,6 @@ module Latex = struct
let space = 0.5 *. (float n) in
printf "\\coqdocindent{%2.2fem}\n" space
- let module_ref m s =
- printf "\\coqdocmodule{%s}{%s}" m (escaped s)
-
let ident_ref m fid typ s =
let id = if fid <> "" then (m ^ "." ^ fid) else m in
match find_module m with
@@ -358,12 +355,8 @@ module Latex = struct
let reference s = function
| Def (fullid,typ) ->
defref (get_module false) fullid typ s
- | Mod (m,s') when s = s' ->
- module_ref m s
| Ref (m,fullid,typ) ->
ident_ref m fullid typ s
- | Mod _ ->
- printf "\\coqdocvar{%s}" (escaped s)
(*s The sublexer buffers symbol characters and attached
uninterpreted ident and try to apply special translation such as,
@@ -620,15 +613,6 @@ module Html = struct
| Some n -> n
| None -> addr)
- let module_ref m s =
- match find_module m with
- | Local ->
- printf "<a class=\"modref\" href=\"%s.html\">%s</a>" m s
- | External m when !externals ->
- printf "<a class=\"modref\" href=\"%s.html\">%s</a>" m s
- | External _ | Unknown ->
- output_string s
-
let ident_ref m fid typ s =
match find_module m with
| Local ->
@@ -645,12 +629,8 @@ module Html = struct
| Def (fullid,ty) ->
printf "<a name=\"%s\">" fullid;
printf "<span class=\"id\" type=\"%s\">%s</span></a>" (type_name ty) s
- | Mod (m,s') when s = s' ->
- module_ref m s
| Ref (m,fullid,ty) ->
ident_ref m fullid (type_name ty) s
- | Mod _ ->
- printf "<span class=\"id\" type=\"mod\">%s</span>" s
let output_sublexer_string doescape issymbchar tag s =
let s = if doescape then escaped s else s in