Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kerneis committed May 27, 2014
1 parent 53b3da6 commit 2647877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cil.ml
Expand Up @@ -5113,15 +5113,15 @@ let doVisit (vis: cilVisitor)
let mapNoCopy (f: 'a -> 'a) l =
let rec aux acc changed = function
[] -> if changed then List.rev acc else l
| (i :: resti) as li ->
| i :: resti ->
let i' = f i in
aux (i' :: acc) (changed || i != i') resti
in aux [] false l

let rec mapNoCopyList (f: 'a -> 'a list) l =
let rec aux acc changed = function
[] -> if changed then List.rev acc else l
| (i :: resti) as li ->
| i :: resti ->
let il' = f i in
let has_changed =
match il' with
Expand Down

0 comments on commit 2647877

Please sign in to comment.