diff --git a/modules/Bio/EnsEMBL/Mapper.pm b/modules/Bio/EnsEMBL/Mapper.pm
index 426074fb435bebc9fbde8ae8e8c4cbbb07142b1f..668558a1ead725e63326f317339c545f2b72a8fe 100644
--- a/modules/Bio/EnsEMBL/Mapper.pm
+++ b/modules/Bio/EnsEMBL/Mapper.pm
@@ -675,7 +675,6 @@ sub map_indel {
   unless ( defined $hash ) {
     throw("Type $type is neither to or from coordinate systems");
   }
-  my $last_used_pair;
   my @indel_coordinates;
 
   my ( $start_idx, $end_idx, $mid_idx, $pair, $self_coord );
@@ -711,7 +710,6 @@ sub map_indel {
       push @indel_coordinates, $to;
       last;
     }
-    $last_used_pair = $pair;
   }
 
   return @indel_coordinates;