Skip to content

Commit

Permalink
Remove unused make_var
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Jul 5, 2018
1 parent 82fe666 commit e32cfe2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions src/string_with_vars.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,6 @@ let make_text ?(quoted=false) loc s =
; syntax_version = (1, 0)
}

let make_var ?(quoted=false) loc name =
{ template =
{ quoted
; loc
; parts =
[Var
{ loc
; name
; payload = None
; syntax = Percent
}]
}
; syntax_version = (1, 0)
}

let literal ~quoted ~loc s =
{ parts = [Text s]
; quoted
Expand Down
1 change: 0 additions & 1 deletion src/string_with_vars.mli
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ val sexp_of_t : t -> Sexp.t
val virt : ?quoted: bool -> (string * int * int * int) -> string -> t
val virt_var : ?quoted: bool -> (string * int * int * int) -> string -> t
val virt_text : (string * int * int * int) -> string -> t
val make_var : ?quoted: bool -> Loc.t -> string -> t
val make_text : ?quoted: bool -> Loc.t -> string -> t

val is_var : t -> name:string -> bool
Expand Down

0 comments on commit e32cfe2

Please sign in to comment.