@@ -143,7 +143,6 @@ let GetSubExprOfInput g (gtps, tyargs, tinst) (SubExpr(accessf, (ve2, v2))) =
143143// The ints record which choices taken, e.g. tuple/record fields.
144144type Path =
145145 | PathQuery of Path * Unique
146- | PathConj of Path * int
147146 | PathTuple of Path * TypeInst * int
148147 | PathRecd of Path * TyconRef * TypeInst * int
149148 | PathUnionConstr of Path * UnionCaseRef * TypeInst * int
@@ -154,7 +153,6 @@ type Path =
154153let rec pathEq p1 p2 =
155154 match p1, p2 with
156155 | PathQuery( p1, n1), PathQuery( p2, n2) -> ( n1 = n2) && pathEq p1 p2
157- | PathConj( p1, n1), PathConj( p2, n2) -> ( n1 = n2) && pathEq p1 p2
158156 | PathTuple( p1, _, n1), PathTuple( p2, _, n2) -> ( n1 = n2) && pathEq p1 p2
159157 | PathRecd( p1, _, _, n1), PathRecd( p2, _, _, n2) -> ( n1 = n2) && pathEq p1 p2
160158 | PathUnionConstr( p1, _, _, n1), PathUnionConstr( p2, _, _, n2) -> ( n1 = n2) && pathEq p1 p2
@@ -203,8 +201,6 @@ let RefuteDiscrimSet g m path discrims =
203201 let rec go path tm =
204202 match path with
205203 | PathQuery _ -> raise CannotRefute
206- | PathConj ( p, _ j) ->
207- go p tm
208204 | PathTuple ( p, tys, j) ->
209205 let k , eCoversVals = mkOneKnown tm j tys
210206 go p ( fun _ -> mkRefTupled g m k tys, eCoversVals)
@@ -391,8 +387,6 @@ type Frontier = Frontier of ClauseNumber * Actives * ValMap<Expr>
391387type InvestigationPoint = Investigation of ClauseNumber * DecisionTreeTest * Path
392388
393389// Note: actives must be a SortedDictionary
394- // REVIEW: improve these data structures, though surprisingly these functions don't tend to show up
395- // on profiling runs
396390let rec isMemOfActives p1 actives =
397391 match actives with
398392 | [] -> false
@@ -1624,7 +1618,7 @@ let CompilePatternBasic
16241618 subPats |> List.collect ( fun subPat -> BindProjectionPattern ( Active( inpPath, inpExpr, subPat)) activeState)
16251619
16261620 | TPat_ conjs( subPats, _ m) ->
1627- let newActives = List.mapi ( mkSubActive ( fun path j -> PathConj ( path, j ) ) ( fun _j -> inpAccess)) subPats
1621+ let newActives = List.mapi ( mkSubActive ( fun path _j -> path) ( fun _j -> inpAccess)) subPats
16281622 BindProjectionPatterns newActives activeState
16291623
16301624 | TPat_ range ( c1, c2, m) ->
0 commit comments