cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/precept/java/org/apache/cocoon/precept/preceptors/easyrelax AbstractPreceptorNode.java
Date Sun, 23 Mar 2003 12:35:11 GMT
stefano     2003/03/23 04:35:11

  Modified:    src/blocks/precept/java/org/apache/cocoon/precept/preceptors/easyrelax
                        AbstractPreceptorNode.java
  Log:
  cleaning up dead code (BTW, what was this code supposed to do?)
  
  Revision  Changes    Path
  1.3       +7 -10     cocoon-2.1/src/blocks/precept/java/org/apache/cocoon/precept/preceptors/easyrelax/AbstractPreceptorNode.java
  
  Index: AbstractPreceptorNode.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/precept/java/org/apache/cocoon/precept/preceptors/easyrelax/AbstractPreceptorNode.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractPreceptorNode.java	16 Mar 2003 17:49:05 -0000	1.2
  +++ AbstractPreceptorNode.java	23 Mar 2003 12:35:11 -0000	1.3
  @@ -50,16 +50,11 @@
   */
   package org.apache.cocoon.precept.preceptors.easyrelax;
   
  -import org.apache.cocoon.precept.Preceptor;
  -
  -import org.apache.cocoon.precept.Constraint;
  -
  -
  -import java.util.List;
  -
   import java.util.ArrayList;
  +import java.util.List;
   
  -import java.util.Iterator;
  +import org.apache.cocoon.precept.Constraint;
  +import org.apache.cocoon.precept.Preceptor;
   
   /**
    * @author Torsten Curdt <tcurdt@dff.st>
  @@ -82,6 +77,7 @@
       }
   
       public List validate(Object value) {
  +        /* FIXME (SM): the code below is totally useless. What is supposed to do?
           if (constraints != null) {
               for (Iterator it = constraints.iterator(); it.hasNext();) {
                   Constraint constraint = (Constraint) it.next();
  @@ -90,7 +86,8 @@
           }
           else {
               return (null);
  -        }
  +        }*/
  +        return (null);
       }
   
       public List getConstraints() {
  
  
  

Mime
View raw message