Revision: 17178
          http://sourceforge.net/p/gate/code/17178
Author:   markagreenwood
Date:     2013-12-18 10:51:17 +0000 (Wed, 18 Dec 2013)
Log Message:
-----------
removed an unnecessary null check to help with improving efficiency

Modified Paths:
--------------
    gate/trunk/src/main/gate/relations/RelationSet.java

Modified: gate/trunk/src/main/gate/relations/RelationSet.java
===================================================================
--- gate/trunk/src/main/gate/relations/RelationSet.java 2013-12-18 10:24:36 UTC 
(rev 17177)
+++ gate/trunk/src/main/gate/relations/RelationSet.java 2013-12-18 10:51:17 UTC 
(rev 17178)
@@ -313,16 +313,9 @@
 
       Map<Integer, BitSet> indexByMember = indexesByMember.get(memeberPos);
       BitSet sameMember = indexByMember.get(member);
-      if(sameMember == null) {
-        sameMember = new BitSet(maxID);
-        indexByMember.put(member, sameMember);
-      }
       sameMember.clear(relation.getId());
     }
 
-    // TODO find any other relations that referenced this one and delete
-    // those as well
-
     // notify anyone who cares enough to listen that we have deleted a
     // relation
     fireRelationRemoved(new RelationSetEvent(this,

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to