chore: Code cleanup

This commit is contained in:
Leni Aniva 2025-07-10 14:43:58 -07:00
parent 1fcc24283b
commit bd7dde8235
Signed by: aniva
GPG Key ID: D5F96287843E8DFB
1 changed files with 1 additions and 5 deletions

View File

@ -140,8 +140,7 @@ protected def GoalState.withRootContext { n } [MonadControlT MetaM n] [Monad n]
private def restoreCoreMExtra (state : Core.SavedState) : CoreM Unit := private def restoreCoreMExtra (state : Core.SavedState) : CoreM Unit :=
let { nextMacroScope, ngen, .. } := state let { nextMacroScope, ngen, .. } := state
modifyGetThe Core.State fun st => ((), modifyThe Core.State ({ · with nextMacroScope, ngen })
{ st with nextMacroScope, ngen })
-- Restore the name generator and macro scopes of the core state -- Restore the name generator and macro scopes of the core state
protected def GoalState.restoreCoreMExtra (state: GoalState): CoreM Unit := protected def GoalState.restoreCoreMExtra (state: GoalState): CoreM Unit :=
restoreCoreMExtra state.coreState restoreCoreMExtra state.coreState
@ -151,9 +150,6 @@ protected def GoalState.restoreMetaM (state: GoalState): MetaM Unit := do
protected def GoalState.restoreElabM (state: GoalState): Elab.TermElabM Unit := do protected def GoalState.restoreElabM (state: GoalState): Elab.TermElabM Unit := do
state.restoreCoreMExtra state.restoreCoreMExtra
state.savedState.term.restore state.savedState.term.restore
private def GoalState.restoreTacticM (state: GoalState) (goal: MVarId): Elab.Tactic.TacticM Unit := do
state.restoreElabM
Elab.Tactic.setGoals [goal]
/-- /--
Brings into scope a list of goals. User must ensure `goals` are distinct. Brings into scope a list of goals. User must ensure `goals` are distinct.