JAL-3383 removing colour caching (to a separate branch)
[jalview.git] / src / jalview / datamodel / Sequence.java
index 47a7ead..6c0e528 100755 (executable)
@@ -118,11 +118,6 @@ public class Sequence extends ASequence implements SequenceI
    */
   private int changeCount;
 
-  /*
-   * cached rgb colours for each position of the aligned sequence (column)
-   */
-  private int[] argb;
-
   /**
    * Creates a new Sequence object.
    * 
@@ -2022,7 +2017,6 @@ public class Sequence extends ASequence implements SequenceI
   @Override
   public void sequenceChanged()
   {
-    argb = null;
     changeCount++;
   }
 
@@ -2125,28 +2119,6 @@ public class Sequence extends ASequence implements SequenceI
     return 0;
   }
 
-  @Override
-  public int getColor(int i)
-  {
-    return argb == null ? 0 : argb[i];
-  }
-
-  @Override
-  public int setColor(int i, int rgb)
-  {
-    if (argb == null)
-    {
-      argb = new int[this.sequence.length];
-    }
-    return (argb[i] = rgb);
-  }
-
-  @Override
-  public void resetColors()
-  {
-    argb = null;
-  }
-
   /**
    * Answers a (possibly empty) list of features of the specified type that
    * overlap the specified column position. If parameter {@code result} is not