From: James Procter Date: Wed, 20 Sep 2023 13:13:07 +0000 (+0100) Subject: JAL-4265 back out redundant ‘saveState’ and ‘restoreState’ StructureCommandsI methods. X-Git-Tag: Release_2_11_4_0~174^2~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2115060f8ce4b907d033a77ccd929420c61ec234;p=jalview.git JAL-4265 back out redundant ‘saveState’ and ‘restoreState’ StructureCommandsI methods. --- diff --git a/src/jalview/ext/jmol/JmolCommands.java b/src/jalview/ext/jmol/JmolCommands.java index 01dac9b..19d64f0 100644 --- a/src/jalview/ext/jmol/JmolCommands.java +++ b/src/jalview/ext/jmol/JmolCommands.java @@ -500,16 +500,4 @@ public class JmolCommands extends StructureCommandsBase { return null; // not an external viewer } - - @Override - public StructureCommandI saveState(String label) - { - return new StructureCommand("save STATE " + label); - } - - @Override - public StructureCommandI restoreState(String label) - { - return new StructureCommand("restore STATE " + label); - } } diff --git a/src/jalview/structure/StructureCommandsBase.java b/src/jalview/structure/StructureCommandsBase.java index 24b6539..7f919ce 100644 --- a/src/jalview/structure/StructureCommandsBase.java +++ b/src/jalview/structure/StructureCommandsBase.java @@ -277,18 +277,4 @@ public abstract class StructureCommandsBase implements StructureCommandsI { return null; } - - @Override - public StructureCommandI saveState(String label) - { - Console.debug("saveState not implemented"); - return null; - } - - @Override - public StructureCommandI restoreState(String label) - { - Console.debug("restoreState not implemented"); - return null; - } } diff --git a/src/jalview/structure/StructureCommandsI.java b/src/jalview/structure/StructureCommandsI.java index 2b3502d..575f256 100644 --- a/src/jalview/structure/StructureCommandsI.java +++ b/src/jalview/structure/StructureCommandsI.java @@ -245,8 +245,4 @@ public interface StructureCommandsI StructureCommandI getResidueAttributes(String attName); List centerViewOn(List residues); - - StructureCommandI saveState(String label); - - StructureCommandI restoreState(String label); }