JAL-3383 removing colour caching (to a separate branch)
[jalview.git] / src / jalview / renderer / OverviewResColourFinder.java
index 8d7980a..7207dea 100644 (file)
@@ -124,20 +124,13 @@ public class OverviewResColourFinder extends ResidueColourFinder
           SequenceGroup[] allGroups, final SequenceI seq, int i,
           FeatureColourFinder finder)
   {
-
-    int c = seq.getColor(i);
-    if (c != 0)
-    {
-      return c;
-    }
-
     int col = getResidueBoxColourInt(showBoxes, shader, allGroups, seq, i);
 
     // if there's a FeatureColourFinder we might override the residue colour
     // here with feature colouring
     col = finder == null || finder.noFeaturesDisplayed() ? col
             : finder.findFeatureColourInt(col, seq, i);
-    return seq.setColor(i, col);
+    return col;
   }
 
   @Override