[jboss-svn-commits] JBL Code SVN: r11049 - labs/jbossrules/branches/3.0.x/drools-core/src/main/java/org/drools/reteoo.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Apr 16 19:33:30 EDT 2007
Author: tirelli
Date: 2007-04-16 19:33:29 -0400 (Mon, 16 Apr 2007)
New Revision: 11049
Modified:
labs/jbossrules/branches/3.0.x/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java
Log:
JBRULES-759: removing old comments
Modified: labs/jbossrules/branches/3.0.x/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java
===================================================================
--- labs/jbossrules/branches/3.0.x/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java 2007-04-16 23:30:04 UTC (rev 11048)
+++ labs/jbossrules/branches/3.0.x/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java 2007-04-16 23:33:29 UTC (rev 11049)
@@ -82,9 +82,6 @@
private final ObjectTypeResolver resolver;
- // /** Nodes that have been attached. */
- // private final Map attachedNodes;
-
private TupleSource tupleSource;
private ObjectSource objectSource;
@@ -115,7 +112,6 @@
this.ruleBase = ruleBase;
this.rete = this.ruleBase.getRete();
this.resolver = resolver;
- // this.attachedNodes = new HashMap();
this.rules = new HashMap();
//Set to 1 as Rete node is set to 0
@@ -581,34 +577,6 @@
return node;
}
- // private ObjectSource attachNode(final ObjectSource candidate) {
- // ObjectSource node = candidate;
- // if( this.tupleSource != null ) {
- // int idx = this.tupleSource.getTupleSinks().indexOf( candidate );
- // if( idx > -1 ) {
- // node = (ObjectSource) this.tupleSource.getTupleSinks().get( idx );
- // node.addShare();
- // this.id--;
- // }
- // } else if( this.objectSource != null ) {
- // for( Iterator it = this.objectSource.getObjectSinks().iterator(); it.hasNext(); ) {
- // ObjectSink sink = (ObjectSink) it.next();
- // if( candidate.equals( sink ) ) {
- // node = (ObjectSource) sink;
- // node.addShare();
- // this.id--;
- // }
- // }
- // }
- //
- // if ( this.workingMemories.length == 0 ) {
- // node.attach();
- // } else {
- // node.attach( this.workingMemories );
- // }
- // return node;
- // }
-
public void removeRule(final Rule rule) {
// reset working memories for potential propagation
this.workingMemories = (ReteooWorkingMemory[]) this.ruleBase.getWorkingMemories().toArray( new ReteooWorkingMemory[this.ruleBase.getWorkingMemories().size()] );
More information about the jboss-svn-commits
mailing list