@@ -1036,24 +1036,6 @@ module Fmt = struct
1036
1036
Format. fprintf ppf " %a.%s" resolved_parent_path p
1037
1037
(Odoc_model.Names.TypeName. to_string t)
1038
1038
1039
- and resolved_datatype_path :
1040
- Format. formatter -> Cpath.Resolved. datatype -> unit =
1041
- fun ppf p ->
1042
- match p with
1043
- | `Local id -> Format. fprintf ppf " %a" Ident. fmt id
1044
- | `Gpath p ->
1045
- Format. fprintf ppf " %a" model_resolved_path
1046
- (p :> Odoc_model.Paths.Path.Resolved.t )
1047
- | `Substituted x ->
1048
- Format. fprintf ppf " substituted(%a)" resolved_datatype_path x
1049
- | `CanonicalDataType (t1 , t2 ) ->
1050
- Format. fprintf ppf " canonicalty(%a,%a)" resolved_datatype_path t1
1051
- model_path
1052
- (t2 :> Odoc_model.Paths.Path.t )
1053
- | `Type (p , t ) ->
1054
- Format. fprintf ppf " %a.%s" resolved_parent_path p
1055
- (Odoc_model.Names.TypeName. to_string t)
1056
-
1057
1039
and resolved_value_path : Format.formatter -> Cpath.Resolved.value -> unit =
1058
1040
fun ppf p ->
1059
1041
match p with
@@ -1064,14 +1046,6 @@ module Fmt = struct
1064
1046
Format. fprintf ppf " %a" model_resolved_path
1065
1047
(p :> Odoc_model.Paths.Path.Resolved.t )
1066
1048
1067
- and resolved_constructor_path :
1068
- Format. formatter -> Cpath.Resolved. constructor -> unit =
1069
- fun ppf p ->
1070
- match p with
1071
- | `Constructor (p , t ) ->
1072
- Format. fprintf ppf " %a.%s" resolved_datatype_path p
1073
- (Odoc_model.Names.ConstructorName. to_string t)
1074
-
1075
1049
and resolved_parent_path : Format.formatter -> Cpath.Resolved.parent -> unit =
1076
1050
fun ppf p ->
1077
1051
match p with
@@ -1100,21 +1074,6 @@ module Fmt = struct
1100
1074
Format. fprintf ppf " %a.%s" resolved_parent_path p
1101
1075
(Odoc_model.Names.TypeName. to_string t)
1102
1076
1103
- and datatype_path : Format.formatter -> Cpath.datatype -> unit =
1104
- fun ppf p ->
1105
- match p with
1106
- | `Resolved r -> Format. fprintf ppf " r(%a)" resolved_datatype_path r
1107
- | `Identifier (id , b ) ->
1108
- Format. fprintf ppf " identifier(%a, %b)" model_identifier
1109
- (id :> Odoc_model.Paths.Identifier.t )
1110
- b
1111
- | `Local (id , b ) -> Format. fprintf ppf " local(%a,%b)" Ident. fmt id b
1112
- | `Substituted s -> Format. fprintf ppf " substituted(%a)" datatype_path s
1113
- | `Dot (m , s ) -> Format. fprintf ppf " %a.%s" module_path m s
1114
- | `Type (p , t ) ->
1115
- Format. fprintf ppf " %a.%s" resolved_parent_path p
1116
- (Odoc_model.Names.TypeName. to_string t)
1117
-
1118
1077
and value_path : Format.formatter -> Cpath.value -> unit =
1119
1078
fun ppf p ->
1120
1079
match p with
@@ -1128,15 +1087,6 @@ module Fmt = struct
1128
1087
(id :> Odoc_model.Paths.Identifier.t )
1129
1088
b
1130
1089
1131
- and constructor_path : Format.formatter -> Cpath.constructor -> unit =
1132
- fun ppf p ->
1133
- match p with
1134
- | `Resolved r -> Format. fprintf ppf " r(%a)" resolved_constructor_path r
1135
- | `Dot (m , s ) -> Format. fprintf ppf " %a.%s" datatype_path m s
1136
- | `Constructor (p , t ) ->
1137
- Format. fprintf ppf " %a.%s" resolved_datatype_path p
1138
- (Odoc_model.Names.ConstructorName. to_string t)
1139
-
1140
1090
and resolved_class_type_path :
1141
1091
Format. formatter -> Cpath.Resolved. class_type -> unit =
1142
1092
fun ppf p ->
@@ -1210,10 +1160,6 @@ module Fmt = struct
1210
1160
Format. fprintf ppf " %a.%s" model_resolved_path
1211
1161
(parent :> t )
1212
1162
(Odoc_model.Names.TypeName. to_string name)
1213
- | `Constructor (parent , name ) ->
1214
- Format. fprintf ppf " %a.%s" model_resolved_path
1215
- (parent :> t )
1216
- (Odoc_model.Names.ConstructorName. to_string name)
1217
1163
| `Value (parent , name ) ->
1218
1164
Format. fprintf ppf " %a.%s" model_resolved_path
1219
1165
(parent :> t )
@@ -1248,11 +1194,6 @@ module Fmt = struct
1248
1194
(t1 :> t )
1249
1195
model_path
1250
1196
(t2 :> Odoc_model.Paths.Path.t )
1251
- | `CanonicalDataType (t1 , t2 ) ->
1252
- Format. fprintf ppf " canonicaldaty(%a,%a)" model_resolved_path
1253
- (t1 :> t )
1254
- model_path
1255
- (t2 :> Odoc_model.Paths.Path.t )
1256
1197
| `Apply (funct , arg ) ->
1257
1198
Format. fprintf ppf " %a(%a)" model_resolved_path
1258
1199
(funct :> t )
@@ -1864,19 +1805,6 @@ module Of_Lang = struct
1864
1805
| `ClassType (p , name ) ->
1865
1806
`ClassType (`Module (resolved_module_path ident_map p), name)
1866
1807
1867
- and resolved_datatype_path :
1868
- _ -> Odoc_model.Paths.Path.Resolved.DataType. t -> Cpath.Resolved. datatype
1869
- =
1870
- fun ident_map p ->
1871
- match p with
1872
- | `Identifier i -> (
1873
- match identifier Maps.Type. find ident_map.types i with
1874
- | `Local l -> `Local l
1875
- | `Identifier _ -> `Gpath p)
1876
- | `CanonicalDataType (p1 , p2 ) ->
1877
- `CanonicalDataType (resolved_datatype_path ident_map p1, p2)
1878
- | `Type (p , name ) -> `Type (`Module (resolved_module_path ident_map p), name)
1879
-
1880
1808
and resolved_value_path :
1881
1809
_ -> Odoc_model.Paths.Path.Resolved.Value. t -> Cpath.Resolved. value =
1882
1810
fun ident_map p ->
@@ -1885,13 +1813,6 @@ module Of_Lang = struct
1885
1813
`Value (`Module (resolved_module_path ident_map p), name)
1886
1814
| `Identifier _ -> `Gpath p
1887
1815
1888
- and resolved_constructor_path :
1889
- _ ->
1890
- Odoc_model.Paths.Path.Resolved.Constructor. t ->
1891
- Cpath.Resolved. constructor =
1892
- fun ident_map (`Constructor (p , name )) ->
1893
- `Constructor (resolved_datatype_path ident_map p, name)
1894
-
1895
1816
and resolved_class_type_path :
1896
1817
_ ->
1897
1818
Odoc_model.Paths.Path.Resolved.ClassType. t ->
@@ -1944,30 +1865,13 @@ module Of_Lang = struct
1944
1865
| `Local i -> `Local (i, b))
1945
1866
| `Dot (path' , x ) -> `Dot (module_path ident_map path', x)
1946
1867
1947
- and datatype : _ -> Odoc_model.Paths.Path.DataType.t -> Cpath.datatype =
1948
- fun ident_map p ->
1949
- match p with
1950
- | `Resolved r -> `Resolved (resolved_datatype_path ident_map r)
1951
- | `Identifier (i , b ) -> (
1952
- match identifier Maps.Type. find ident_map.types i with
1953
- | `Identifier i -> `Identifier (i, b)
1954
- | `Local i -> `Local (i, b))
1955
- | `Dot (path' , x ) -> `Dot (module_path ident_map path', x)
1956
-
1957
1868
and value_path : _ -> Odoc_model.Paths.Path.Value.t -> Cpath.value =
1958
1869
fun ident_map p ->
1959
1870
match p with
1960
1871
| `Resolved r -> `Resolved (resolved_value_path ident_map r)
1961
1872
| `Dot (path' , x ) -> `Dot (module_path ident_map path', x)
1962
1873
| `Identifier (i , b ) -> `Identifier (i, b)
1963
1874
1964
- and constructor_path :
1965
- _ -> Odoc_model.Paths.Path.Constructor. t -> Cpath. constructor =
1966
- fun ident_map p ->
1967
- match p with
1968
- | `Resolved r -> `Resolved (resolved_constructor_path ident_map r)
1969
- | `Dot (path' , x ) -> `Dot (datatype ident_map path', x)
1970
-
1971
1875
and class_type_path :
1972
1876
_ -> Odoc_model.Paths.Path.ClassType. t -> Cpath. class_type =
1973
1877
fun ident_map p ->
0 commit comments