Skip to content

Commit 93ec653

Browse files
committed
remove unused
1 parent 4c0e1e7 commit 93ec653

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

analysis/src/CompletionFrontEnd.ml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -316,20 +316,6 @@ let completePipeChain ~(lhs : Parsetree.expression) =
316316
|> Option.map (fun ctxPath -> (ctxPath, pexp_loc))
317317
| _ -> None
318318

319-
let findPatTupleItemWithCursor patterns ~pos =
320-
let patCount = ref None in
321-
let patCountWithPatHole = ref None in
322-
patterns
323-
|> List.iteri (fun index p ->
324-
match p.Parsetree.ppat_loc |> CursorPosition.classifyLoc ~pos with
325-
| HasCursor -> patCount := Some index
326-
| EmptyLoc -> patCountWithPatHole := Some index
327-
| _ -> ());
328-
match (!patCount, !patCountWithPatHole) with
329-
| Some patCount, _ -> Some patCount
330-
| None, Some patHoleCount -> Some patHoleCount
331-
| _ -> None
332-
333319
let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
334320
let offsetNoWhite = Utils.skipWhite text (offset - 1) in
335321
let posNoWhite =

0 commit comments

Comments
 (0)