]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/OptimizationEnum.java
Retiring the ANT/JAVA build and removing the older EDK II packages that required...
[mirror_edk2.git] / Tools / Java / Source / Cpptasks / net / sf / antcontrib / cpptasks / OptimizationEnum.java
diff --git a/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/OptimizationEnum.java b/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/OptimizationEnum.java
deleted file mode 100644 (file)
index 4a0d179..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-/*\r
- *\r
- * Copyright 2004 The Ant-Contrib project\r
- *\r
- *  Licensed under the Apache License, Version 2.0 (the "License");\r
- *  you may not use this file except in compliance with the License.\r
- *  You may obtain a copy of the License at\r
- *\r
- *      http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- *  Unless required by applicable law or agreed to in writing, software\r
- *  distributed under the License is distributed on an "AS IS" BASIS,\r
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- *  See the License for the specific language governing permissions and\r
- *  limitations under the License.\r
- */\r
-package net.sf.antcontrib.cpptasks;\r
-\r
-import org.apache.tools.ant.types.EnumeratedAttribute;\r
-\r
-/**\r
- * Enumeration of optimization levels (experimental).\r
- *\r
- * @author Curt Arnold\r
- *\r
- */\r
-public final class OptimizationEnum\r
-    extends EnumeratedAttribute {\r
-  /**\r
-   * Constructor.\r
-   *\r
-   * Set by default to "speed"\r
-   *\r
-   * @see java.lang.Object#Object()\r
-   */\r
-  public OptimizationEnum() {\r
-    setValue("speed");\r
-  }\r
-\r
-  /**\r
-   * Gets list of acceptable values.\r
-   *\r
-   * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues()\r
-   */\r
-  public String[] getValues() {\r
-    return new String[] {\r
-        "none",\r
-        "size",\r
-        "minimal",\r
-        "speed",\r
-        "full",\r
-        "aggressive",\r
-        "extreme",\r
-        "unsafe"\r
-    };\r
-  }\r
-\r
-  /**\r
-   * Is size optimized.\r
-   * @return boolean true if size is optimized.\r
-   */\r
-  public boolean isSize() {\r
-    return "speed".equals(getValue());\r
-  }\r
-\r
-  /**\r
-   * Is speed optimized.\r
-   * @return boolean true if speed is optimized.\r
-   */\r
-  public boolean isSpeed() {\r
-    return !isSize() && !isNoOptimization();\r
-  }\r
-\r
-  /**\r
-   * Is no optimization performed.\r
-   * @return boolean true if no optimization is performed.\r
-   */\r
-  public boolean isNoOptimization() {\r
-    return "none".equals(getValue());\r
-  }\r
-\r
-}\r