JAL-2451 remove unused flag
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 21 Jun 2017 11:29:47 +0000 (12:29 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 21 Jun 2017 11:29:47 +0000 (12:29 +0100)
src/jalview/commands/EditCommand.java

index 84335c7..a92dca7 100644 (file)
@@ -1436,7 +1436,6 @@ public class EditCommand implements CommandI
         int newBegin = sfBegin;
         int newEnd = sfEnd;
         boolean toDelete = false;
-        boolean follows = false;
         
         if (sfBegin >= cutStartPos && sfEnd <= cutEndPos)
         {
@@ -1479,19 +1478,13 @@ public class EditCommand implements CommandI
         }
   
         seq.deleteFeature(sf);
-        if (!follows)
-        {
-          removed.add(sf);
-        }
+        removed.add(sf);
         if (!toDelete)
         {
           SequenceFeature copy = new SequenceFeature(sf, newBegin, newEnd,
                   sf.getFeatureGroup(), sf.getScore());
           seq.addSequenceFeature(copy);
-          if (!follows)
-          {
-            added.add(copy);
-          }
+          added.add(copy);
         }
       }