@@ -179,7 +179,7 @@ let process_derive_type (attrs : t) : derive_attr * t =
179
179
st, attr::acc
180
180
)
181
181
182
- let iter_process_derive_type (attrs : t ) =
182
+ (* let iter_process_derive_type (attrs : t) =
183
183
let st = ref {explict_nonrec = false; bs_deriving = None } in
184
184
Ext_list.iter attrs
185
185
(fun ({txt ; loc}, payload as attr) ->
@@ -203,7 +203,7 @@ let iter_process_derive_type (attrs : t) =
203
203
(* non bs attribute, no need to mark its use *)
204
204
| _ -> ()
205
205
) ;
206
- ! st
206
+ !st *)
207
207
208
208
209
209
(* duplicated [bs.uncurry] [bs.string] not allowed,
@@ -345,23 +345,17 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
345
345
! st
346
346
347
347
let locg = Location. none
348
- let bs : attr
349
- = {txt = " bs" ; loc = locg}, Ast_payload. empty
348
+ (* let bs : attr
349
+ = {txt = "bs" ; loc = locg}, Ast_payload.empty *)
350
350
351
351
let is_bs (attr : attr ) =
352
352
match attr with
353
353
| {Location. txt = "bs" ; _} , _ -> true
354
354
| _ -> false
355
355
356
- let is_optional (attr : attr ) =
357
- match attr with
358
- | {Location. txt = "bs.optional" ; _} , _ -> true
359
- | _ -> false
360
356
361
- let is_bs_as (attr : attr ) =
362
- match attr with
363
- | {Location. txt = "bs.as" ; _} , _ -> true
364
- | _ -> false
357
+
358
+
365
359
366
360
let bs_get : attr
367
361
= {txt = " bs.get" ; loc = locg}, Ast_payload. empty
@@ -396,12 +390,3 @@ let bs_return_undefined : attr
396
390
},[] )
397
391
; pstr_loc = locg}]
398
392
399
- let deprecated s : attr =
400
- {txt = " ocaml.deprecated" ; loc = locg },
401
- PStr
402
- [
403
- {pstr_desc =
404
- Pstr_eval (
405
- Ast_compatible. const_exp_string ~loc: locg s,
406
- [] )
407
- ; pstr_loc = locg}]
0 commit comments