JAL-2446 comment updates
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 17 Apr 2017 14:44:20 +0000 (15:44 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 17 Apr 2017 14:44:20 +0000 (15:44 +0100)
src/jalview/datamodel/features/FeatureStore.java
src/jalview/datamodel/features/NCList.java

index ddee921..721ac18 100644 (file)
@@ -256,8 +256,6 @@ public class FeatureStore
       }
       if (insertPosition < nonNestedFeatures.size())
       {
-        // FIXME may have to test more than one feature here
-        // e.g. add [40-60] to [20-42, 30-50, 45-55]
         if (encloses(feature, nonNestedFeatures.get(insertPosition)))
         {
           return false;
index 6471e42..0af9d50 100644 (file)
@@ -412,8 +412,12 @@ public class NCList<T extends ContiguousI>
    */
   protected int findFirstOverlap(long from)
   {
-    // TODO binary search
-    // for now quick cheat linear search
+    /*
+     * The NCList paper describes binary search for this step,
+     * but this not implemented here as (a) I haven't understood it yet
+     * and (b) it seems to imply complications for adding to an NCList
+     */
+
     int i = 0;
     if (subranges != null)
     {