This constructor is never called
authoramwaterhouse <Andrew Waterhouse>
Wed, 24 Jan 2007 17:29:38 +0000 (17:29 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 24 Jan 2007 17:29:38 +0000 (17:29 +0000)
src/jalview/commands/EditCommand.java

index be11d44..c1b4daf 100644 (file)
@@ -54,23 +54,6 @@ public class EditCommand implements CommandI
     this.description = description;\r
   }\r
 \r
-  public EditCommand(String description,\r
-                     int command,\r
-                     SequenceI[] seqs,\r
-                     int position,\r
-                     int number,\r
-                     char gapChar)\r
-  {\r
-    this.description = description;\r
-\r
-    if (command==INSERT_GAP || command==DELETE_GAP)\r
-    {\r
-      edits = new Edit[] { new Edit(command, seqs, position, number, gapChar)};\r
-    }\r
-\r
-    performEdit(0);\r
-  }\r
-\r
   public EditCommand( String description,\r
                       int command,\r
                       SequenceI[] seqs,\r
@@ -217,6 +200,8 @@ public class EditCommand implements CommandI
       {\r
         command.al.deleteSequence(command.seqs[i]);\r
       }\r
+\r
+\r
     }\r
   }\r
 \r
@@ -255,6 +240,9 @@ public class EditCommand implements CommandI
         command.string[i] = null;\r
       }\r
       command.seqs[i].setSequence(tmp.toString());\r
+\r
+\r
+\r
     }\r
 \r
     command.string = null;\r
@@ -296,6 +284,7 @@ public class EditCommand implements CommandI
       this.position = position;\r
       this.number = number;\r
       this.al = al;\r
+\r
       alIndex = new int[seqs.length];\r
       for(int i=0; i<seqs.length; i++)\r
         alIndex[i] = al.findIndex(seqs[i]);\r