From fccb323ba528e0f843c9e7fc48145c4872b8c029 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sun, 30 Dec 2001 06:47:13 +0000 Subject: [PATCH] Remove some unused cruft git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270463 13f79535-47bb-0310-9956-ffa450edef68 --- .../myrmidon/framework/exec/Environment.java | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/Environment.java b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/Environment.java index ee6469b28..2e2a042c3 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/Environment.java +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/Environment.java @@ -47,39 +47,6 @@ public final class Environment { } - public static String[] toNativeFormat( final Properties environment ) - throws ExecException - { - final ArrayList newEnvironment = new ArrayList(); - - final Iterator keys = environment.keySet().iterator(); - while( keys.hasNext() ) - { - final String key = (String)keys.next(); - final String value = environment.getProperty( key ); - newEnvironment.add( key + '=' + value ); - } - - return (String[])newEnvironment.toArray( new String[ newEnvironment.size() ] ); - } - - /** - * @deprecated Dont use me!!! - */ - public static Properties createEnvVars( final String[] environment ) - throws ExecException - { - final Properties newEnvironment = new Properties(); - - for( int i = 0; i < environment.length; i++ ) - { - final String var = environment[ i ]; - addProperty( newEnvironment, var ); - } - - return newEnvironment; - } - public static void addNativeEnvironment( final Properties environment ) throws ExecException, IOException {