JAL-2759 Refactor of hideInsertionsFor after review
[jalview.git] / src / jalview / datamodel / HiddenColumns.java
index d1345e3..2b5185f 100644 (file)
@@ -303,14 +303,13 @@ public class HiddenColumns
    * mark the columns corresponding to gap characters as hidden in the column
    * selection
    * 
-   * @param sr
+   * @param insertions
    */
-  public void hideInsertionsFor(SequenceI sr)
+  public void hideInsertionsFor(List<int[]> inserts)
   {
     try
     {
       LOCK.writeLock().lock();
-      List<int[]> inserts = sr.getInsertions();
       for (int[] r : inserts)
       {
         hideColumns(r[0], r[1]);