From 711327860c93283aa4d7708b11ff625644c3dd08 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Thu, 22 Mar 2018 21:14:51 +0000 Subject: [PATCH] java-ant-2.eclass: Drop unused and banned java-ant_remove-taskdefs It's been on the scrapheap long enough now. --- eclass/java-ant-2.eclass | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/eclass/java-ant-2.eclass b/eclass/java-ant-2.eclass index db8404a3c24b..8da5971844a0 100644 --- a/eclass/java-ant-2.eclass +++ b/eclass/java-ant-2.eclass @@ -1,4 +1,4 @@ -# Copyright 2004-2017 Gentoo Foundation +# Copyright 2004-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: java-ant-2.eclass @@ -359,40 +359,6 @@ java-ant_rewrite-classpath() { fi } -# @FUNCTION: java-ant_remove-taskdefs -# @USAGE: [--name NAME] [path/to/build.xml] -# @DESCRIPTION: -# Removes (named) taskdef elements from the build.xml file. -# When --name NAME is specified, only remove taskdef with name NAME. Otherwise, -# all taskdefs are removed. -# The file to rewrite defaults to build.xml when not specified. -java-ant_remove-taskdefs() { - debug-print-function ${FUNCNAME} $* - - die "${FUNCNAME} has been banned, see bug #479838." - - local task_name - if [[ "${1}" == --name ]]; then - task_name="${2}" - shift 2 - fi - local file="${1:-build.xml}" - echo "Removing taskdefs from ${file}" - python <