Skip to content

Commit

Permalink
Occurrence: cleanup
Browse files Browse the repository at this point in the history
Summary: - clean up redundancies

Reviewed By: michalmuskala

Differential Revision: D40231046

fbshipit-source-id: 34c9a662d0098555bd50c08469a374885d49968c
  • Loading branch information
ilya-klyuchnikov authored and facebook-github-bot committed Oct 11, 2022
1 parent 98020bb commit 81082b4
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package com.whatsapp.eqwalizer.tc

import com.whatsapp.eqwalizer.ast.Guards._
import com.whatsapp.eqwalizer.ast.Exprs._
import com.whatsapp.eqwalizer.ast.{Id, Types, Vars}
import com.whatsapp.eqwalizer.ast.{Id, Types}
import com.whatsapp.eqwalizer.ast.Pats._
import com.whatsapp.eqwalizer.ast.Types._

Expand Down Expand Up @@ -89,7 +89,6 @@ object Occurrence {
private case object + extends Polarity
private case object - extends Polarity
type Path = List[Field]
type PosNeg = (List[Pos], List[Neg])

val unary_predicates: Map[String, Type] =
Map(
Expand Down Expand Up @@ -689,13 +688,6 @@ final class Occurrence(pipelineContext: PipelineContext) {
case (_, ListType(_) | NilType) =>
Some(false)

case (BinaryType, BinaryType) =>
Some(true)
case (BinaryType, _) =>
Some(false)
case (_, BinaryType) =>
Some(false)

case _ =>
simpleOverlap(t1, t2)
}
Expand Down

0 comments on commit 81082b4

Please sign in to comment.