cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation SendMailTransformer.java
Date Mon, 11 Aug 2003 20:41:26 GMT
joerg       2003/08/11 13:41:26

  Modified:    src/scratchpad/src/org/apache/cocoon/acting
                        CommandAction.java
               src/blocks/mail/java/org/apache/cocoon/mail/transformation
                        SendMailTransformer.java
  Log:
  cleaned up unused local variables
  
  Revision  Changes    Path
  1.2       +2 -5      cocoon-2.1/src/scratchpad/src/org/apache/cocoon/acting/CommandAction.java
  
  Index: CommandAction.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/acting/CommandAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CommandAction.java	8 Aug 2003 11:35:34 -0000	1.1
  +++ CommandAction.java	11 Aug 2003 20:41:26 -0000	1.2
  @@ -56,9 +56,7 @@
   
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.avalon.framework.thread.ThreadSafe;
  -import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.environment.Redirector;
  -import org.apache.cocoon.environment.Request;
   import org.apache.cocoon.environment.SourceResolver;
   import org.apache.excalibur.source.Source;
   import org.apache.excalibur.source.SourceUtil;
  @@ -79,7 +77,6 @@
   	
       public Map act( Redirector redirector, SourceResolver resolver, Map objectModel, String
source, Parameters param )
   	throws Exception {
  -		Request request = ObjectModelHelper.getRequest(objectModel);
   		String command = param.getParameter(PARAM_COMMAND);
   		Source src = null;
   		
  @@ -88,7 +85,7 @@
   				src = resolver.resolveURI(command);
                   File file = SourceUtil.getFile(src);
                   if ( file != null ) {
  -                    Process p = Runtime.getRuntime().exec(file.getAbsolutePath());
  +                    Runtime.getRuntime().exec(file.getAbsolutePath());
                   } else {
                       this.getLogger().error("Command does not point to a file " + command);
                   }
  
  
  
  1.4       +1 -3      cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java
  
  Index: SendMailTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SendMailTransformer.java	11 Aug 2003 07:46:20 -0000	1.3
  +++ SendMailTransformer.java	11 Aug 2003 20:41:26 -0000	1.4
  @@ -437,8 +437,6 @@
           StringTokenizer t = null;
           t = new StringTokenizer(s.trim(), delim);
   
  -        int i = 0;
  -
           while (t.hasMoreElements()) {
               this.toAddresses.add(t.nextToken());
           }
  
  
  

Mime
View raw message