chore: remove two workarounds

They are not needed anymore after 83775b08cb
This commit is contained in:
Leonardo de Moura 2021-02-05 15:21:57 -08:00
parent b6d7d9569e
commit eb510c16c3

View file

@ -60,13 +60,11 @@ def addPreDefinitions (preDefs : Array PreDefinition) : TermElabM Unit := do
trace[Elab.definition.scc]! "{preDefs.map (·.declName)}"
if preDefs.size == 1 && isNonRecursive preDefs[0] then
let preDef := preDefs[0]
-- TODO: check why we need `true ==`
if true == preDef.modifiers.isNoncomputable then
if preDef.modifiers.isNoncomputable then
addNonRec preDef
else
addAndCompileNonRec preDef
-- TODO: check why we need `true ==`
else if true == preDefs.any (·.modifiers.isUnsafe) then
else if preDefs.any (·.modifiers.isUnsafe) then
addAndCompileUnsafe preDefs
else if preDefs.any (·.modifiers.isPartial) then
addAndCompilePartial preDefs