Skip to content

Commit

Permalink
[ cleanup ] remove unused code left by previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
dunhamsteve authored and mjustus committed Jun 19, 2024
1 parent 2994e23 commit 1a3df3f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Core/Termination/CallGraph.idr
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,12 @@ mutual
do scs <- traverse (findSC defs env Unguarded pats) args
pure (concat scs)
(Guarded, Ref fc (DataCon _ _) cn, args) =>
do Just ty <- lookupTyExact cn (gamma defs)
| Nothing => do
log "totality" 50 $ "Lookup failed"
findSCcall defs env Guarded pats fc cn args
findSCcall defs env Guarded pats fc cn args
(Toplevel, Ref fc (DataCon _ _) cn, args) =>
do Just ty <- lookupTyExact cn (gamma defs)
| Nothing => do
log "totality" 50 $ "Lookup failed"
findSCcall defs env Guarded pats fc cn args
findSCcall defs env Guarded pats fc cn args
(_, Ref fc Func fn, args) =>
do logC "totality" 50 $
pure $ "Looking up type of " ++ show !(toFullNames fn)
Just ty <- lookupTyExact fn (gamma defs)
| Nothing => do
log "totality" 50 $ "Lookup failed"
findSCcall defs env Unguarded pats fc fn args
findSCcall defs env Unguarded pats fc fn args
(_, f, args) =>
do scs <- traverse (findSC defs env Unguarded pats) args
Expand Down

0 comments on commit 1a3df3f

Please sign in to comment.