chore: remove dead code
This commit is contained in:
parent
5dc5e8a92f
commit
f4f0684636
1 changed files with 0 additions and 9 deletions
|
|
@ -270,15 +270,6 @@ let lvlCtx : Level.Context := { fileName := ctx.fileName, fileMap := ctx.fileMap
|
|||
def elabLevel (stx : Syntax) : TermElabM Level :=
|
||||
liftLevelM $ Level.elabLevel stx
|
||||
|
||||
@[inline] def withConfig {α} (f : Meta.Config → Meta.Config) (x : TermElabM α) : TermElabM α :=
|
||||
adaptTheReader Meta.Context (fun (ctx : Meta.Context) => { ctx with config := f ctx.config }) x
|
||||
|
||||
@[inline] def withTransparency {α} (mode : Meta.TransparencyMode) (x : TermElabM α) : TermElabM α :=
|
||||
withConfig (fun config => { config with transparency := mode }) x
|
||||
|
||||
@[inline] def withReducible {α} (x : TermElabM α) : TermElabM α :=
|
||||
withTransparency Meta.TransparencyMode.reducible x
|
||||
|
||||
/- Elaborate `x` with `stx` on the macro stack -/
|
||||
@[inline] def withMacroExpansion {α} (beforeStx afterStx : Syntax) (x : TermElabM α) : TermElabM α :=
|
||||
adaptReader (fun (ctx : Context) => { ctx with macroStack := { before := beforeStx, after := afterStx } :: ctx.macroStack }) x
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue