JAL-3725 restrict mapped virtual feature location to mapped region
[jalview.git] / src / jalview / datamodel / HiddenColumnsCursor.java
index 572f999..2e9d798 100644 (file)
@@ -72,32 +72,6 @@ public class HiddenColumnsCursor
   }
 
   /**
-   * Delete the region the cursor is currently at. Avoids having to reset the
-   * cursor just because we deleted a region.
-   * 
-   * Calls to updateForDeletedRegion should be made from within a writeLock in
-   * the HiddenColumns class - since changes to the hiddenColumns collection
-   * require a writeLock the lock should already exist.
-   *
-   * @param hiddenCols
-   *          replacement list of hidden column regions
-   * @param remove
-   *          number of columns which were deleted
-   */
-  protected void updateForDeletedRegion(List<int[]> hiddenCols, int remove)
-  {
-    hiddenColumns = hiddenCols;
-    if (!hiddenCols.isEmpty())
-    {
-      if (cursorPos.getRegionIndex() >= hiddenCols.size())
-      {
-        cursorPos = new HiddenCursorPosition(hiddenCols.size(),
-                cursorPos.getHiddenSoFar() - remove);
-      }
-    }
-  }
-
-  /**
    * Get the cursor pointing to the hidden region that column is within (if
    * column is hidden) or which is to the right of column (if column is
    * visible). If no hidden columns are to the right, returns a cursor pointing