From: gmungoc Date: Mon, 31 Aug 2020 15:46:54 +0000 (+0100) Subject: JAL-3518 removed unneeded override in ChimeraCommands X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2043c7f197d747c97536289f5fdad72065961dfa;p=jalview.git JAL-3518 removed unneeded override in ChimeraCommands --- diff --git a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java index c88e71e..780308d 100644 --- a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java +++ b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java @@ -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 colourBySequence( - Map colourMap) - { - List 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) { diff --git a/src/jalview/structure/StructureCommandsBase.java b/src/jalview/structure/StructureCommandsBase.java index 751f64b..11fadc0 100644 --- a/src/jalview/structure/StructureCommandsBase.java +++ b/src/jalview/structure/StructureCommandsBase.java @@ -24,7 +24,7 @@ public abstract class StructureCommandsBase implements StructureCommandsI * * @return */ - protected static String getCommandSeparator() + protected String getCommandSeparator() { return CMD_SEPARATOR; }