JAL-3518 removed unneeded override in ChimeraCommands feature/JAL-3390hideUnmappedStructure
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 31 Aug 2020 15:46:54 +0000 (16:46 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 31 Aug 2020 15:46:54 +0000 (16:46 +0100)
src/jalview/ext/rbvi/chimera/ChimeraCommands.java
src/jalview/structure/StructureCommandsBase.java

index c88e71e..780308d 100644 (file)
@@ -355,33 +355,6 @@ public class ChimeraCommands extends StructureCommandsBase
     return new StructureCommand("open " + file);
   }
 
-  /**
-   * Overrides the default method to concatenate colour commands into one
-   */
-  @Override
-  public List<StructureCommandI> colourBySequence(
-          Map<Object, AtomSpecModel> colourMap)
-  {
-    List<StructureCommandI> commands = new ArrayList<>();
-    StringBuilder sb = new StringBuilder(colourMap.size() * 20);
-    boolean first = true;
-    for (Object key : colourMap.keySet())
-    {
-      Color colour = (Color) key;
-      final AtomSpecModel colourData = colourMap.get(colour);
-      StructureCommandI command = getColourCommand(colourData, colour);
-      if (!first)
-      {
-        sb.append(getCommandSeparator());
-      }
-      first = false;
-      sb.append(command.getCommand());
-    }
-
-    commands.add(new StructureCommand(sb.toString()));
-    return commands;
-  }
-
   @Override
   public StructureCommandI openSession(String filepath)
   {
index 751f64b..11fadc0 100644 (file)
@@ -24,7 +24,7 @@ public abstract class StructureCommandsBase implements StructureCommandsI
    * 
    * @return
    */
-  protected static String getCommandSeparator()
+  protected String getCommandSeparator()
   {
     return CMD_SEPARATOR;
   }