JAL-3680 merged description of individual cursor key actions
[jalview.git] / src / jalview / datamodel / AlignedCodonFrame.java
index 26f6e2a..fffa137 100644 (file)
@@ -220,12 +220,12 @@ public class AlignedCodonFrame
 
   /**
    * Returns the first mapping found which is to or from the given sequence, or
-   * null.
+   * null if none is found
    * 
    * @param seq
    * @return
    */
-  public Mapping getMappingForSequence(SequenceI seq, boolean cdsOnly)
+  public Mapping getMappingForSequence(SequenceI seq)
   {
     SequenceI seqDs = seq.getDatasetSequence();
     seqDs = seqDs != null ? seqDs : seq;
@@ -234,11 +234,7 @@ public class AlignedCodonFrame
     {
       if (ssm.fromSeq == seqDs || ssm.mapping.to == seqDs)
       {
-        if (!cdsOnly || ssm.fromSeq.getName().startsWith("CDS")
-                || ssm.mapping.to.getName().startsWith("CDS"))
-        {
-          return ssm.mapping;
-        }
+        return ssm.mapping;
       }
     }
     return null;