Author: jm
Date: 2012-05-03 12:15:07 -0700 (Thu, 03 May 2012)
New Revision: 29092
Modified:
core3/impl/trunk/filter-impl/src/main/java/org/cytoscape/filter/internal/quickfind/util/QuickFindImpl.java
Log:
Removed unnecessary call to network.getNodeList()
Modified:
core3/impl/trunk/filter-impl/src/main/java/org/cytoscape/filter/internal/quickfind/util/QuickFindImpl.java
===================================================================
---
core3/impl/trunk/filter-impl/src/main/java/org/cytoscape/filter/internal/quickfind/util/QuickFindImpl.java
2012-05-03 14:48:03 UTC (rev 29091)
+++
core3/impl/trunk/filter-impl/src/main/java/org/cytoscape/filter/internal/quickfind/util/QuickFindImpl.java
2012-05-03 19:15:07 UTC (rev 29092)
@@ -83,10 +83,7 @@
// Otherwise, index by UNIQUE_IDENTIFIER.
String controllingAttribute =
network.getRow(network).get(QuickFind.DEFAULT_INDEX, String.class);
- CyTable nodeTable = null;
- CyNode node = network.getNodeList().iterator().next();
- if (node != null)
- nodeTable = network.getDefaultNodeTable();
+ CyTable nodeTable = network.getDefaultNodeTable();
if (controllingAttribute == null) {
// Small hack to index BioPAX Networks by default with
node_label.
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.