sebb        2004/03/01 16:07:51

  Modified:    src/core/org/apache/jmeter/functions AbstractFunction.java
  Log:
  Comment out unused code
  
  Revision  Changes    Path
  1.11      +45 -45    
jakarta-jmeter/src/core/org/apache/jmeter/functions/AbstractFunction.java
  
  Index: AbstractFunction.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/functions/AbstractFunction.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- AbstractFunction.java     14 Feb 2004 03:34:29 -0000      1.10
  +++ AbstractFunction.java     2 Mar 2004 00:07:51 -0000       1.11
  @@ -18,22 +18,21 @@
   
   package org.apache.jmeter.functions;
   
  -import java.io.UnsupportedEncodingException;
  +//import java.io.UnsupportedEncodingException;
   import java.util.Collection;
  -import java.util.LinkedList;
  -import java.util.List;
  -import java.util.StringTokenizer;
  +//import java.util.LinkedList;
  +//import java.util.List;
  +//import java.util.StringTokenizer;
   
   import org.apache.jmeter.samplers.SampleResult;
   import org.apache.jmeter.samplers.Sampler;
   import org.apache.jmeter.threads.JMeterContext;
   import org.apache.jmeter.threads.JMeterContextService;
   import org.apache.jmeter.threads.JMeterVariables;
  -import org.apache.jorphan.util.JOrphanUtils;
  +//import org.apache.jorphan.util.JOrphanUtils;
   
   /**
  - * @author mstover
  - * @version $Revision$
  + * @version $Revision$ on $Date$
    */
   public abstract class AbstractFunction implements Function
   {
  @@ -66,43 +65,44 @@
        */
       abstract public String getReferenceKey();
   
  -    /**
  -     * Provides a convenient way to parse the given argument string into a
  -     * collection of individual arguments.  Takes care of splitting the string
  -     * based on commas, generates blank strings for values between adjacent
  -     * commas, and decodes the string using URLDecoder.
  -     * 
  -     * @deprecated
  -     */
  -    protected Collection parseArguments(String params)
  -    {
  -        StringTokenizer tk = new StringTokenizer(params, ",", true);
  -        List arguments = new LinkedList();
  -        String previous = "";
  -        while (tk.hasMoreTokens())
  -        {
  -            String arg = tk.nextToken();
  -
  -            if (arg.equals(",") && previous.equals(","))
  -            {
  -                arguments.add("");
  -            }
  -            else if (!arg.equals(","))
  -            {
  -                try
  -                {
  -                    arguments.add(JOrphanUtils.decode(arg, "UTF-8"));
  -                }
  -                catch (UnsupportedEncodingException e)
  -                {
  -                    // UTF-8 unsupported? You must be joking!
  -                    throw new Error("Should not happen: "+e.toString());
  -                }
  -            }
  -            previous = arg;
  -        }
  -        return arguments;
  -    }
  +// Not used    
  +//    /**
  +//     * Provides a convenient way to parse the given argument string into a
  +//     * collection of individual arguments.  Takes care of splitting the string
  +//     * based on commas, generates blank strings for values between adjacent
  +//     * commas, and decodes the string using URLDecoder.
  +//     * 
  +//     * @deprecated
  +//     */
  +//    protected Collection parseArguments(String params)
  +//    {
  +//        StringTokenizer tk = new StringTokenizer(params, ",", true);
  +//        List arguments = new LinkedList();
  +//        String previous = "";
  +//        while (tk.hasMoreTokens())
  +//        {
  +//            String arg = tk.nextToken();
  +//
  +//            if (arg.equals(",") && previous.equals(","))
  +//            {
  +//                arguments.add("");
  +//            }
  +//            else if (!arg.equals(","))
  +//            {
  +//                try
  +//                {
  +//                    arguments.add(JOrphanUtils.decode(arg, "UTF-8"));
  +//                }
  +//                catch (UnsupportedEncodingException e)
  +//                {
  +//                    // UTF-8 unsupported? You must be joking!
  +//                    throw new Error("Should not happen: "+e.toString());
  +//                }
  +//            }
  +//            previous = arg;
  +//        }
  +//        return arguments;
  +//    }
   
       /**
        * Provides a convenient way to parse the given argument string into a
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to