commit: 449449afcca0e9f34e76aecf0deee9efdb2fc267 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Fri Nov 22 08:45:05 2024 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Fri Dec 6 07:43:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=449449af
java-utils-2.eclass: remove unused and undocumented functions removes the undocumented eclass functions: - java-pkg_jar-list - increment-qa-violations Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39233/commits/5792412f99de65ec392f765cd4bd3585b53bb8fe Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> eclass/java-utils-2.eclass | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 00ae7f790e08..5874f6ba8665 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -253,9 +253,6 @@ JAVA_PKG_COMPILERS_CONF=${JAVA_PKG_COMPILERS_CONF:="/etc/java-config-2/build/com # ) # @CODE -# TODO document me -JAVA_PKG_QA_VIOLATIONS=0 - # @FUNCTION: java-pkg_doexamples # @USAGE: [--subdir <subdir>] <file1/dir1> [<file2> ...] # @DESCRIPTION: @@ -2784,19 +2781,6 @@ java-pkg_die() { } -# TODO document -# List jars in the source directory, ${S} -java-pkg_jar-list() { - if [[ -n "${JAVA_PKG_DEBUG}" ]]; then - einfo "Linked Jars" - find "${S}" -type l -name '*.jar' -print0 | xargs -0 -r -n 500 ls -ald | sed -e "s,${WORKDIR},\${WORKDIR}," - einfo "Jars" - find "${S}" -type f -name '*.jar' -print0 | xargs -0 -r -n 500 ls -ald | sed -e "s,${WORKDIR},\${WORKDIR}," - einfo "Classes" - find "${S}" -type f -name '*.class' -print0 | xargs -0 -r -n 500 ls -ald | sed -e "s,${WORKDIR},\${WORKDIR}," - fi -} - # @FUNCTION: java-pkg_verify-classes # @INTERNAL # @DESCRIPTION: @@ -2958,16 +2942,9 @@ java-pkg_announce-qa-violation() { nodie="true" shift fi - echo "Java QA Notice: $@" >&2 - increment-qa-violations [[ -z "${nodie}" ]] && is-java-strict && die "${@}" } -increment-qa-violations() { - let "JAVA_PKG_QA_VIOLATIONS+=1" - export JAVA_PKG_QA_VIOLATIONS -} - # @FUNCTION: is-java-strict # @INTERNAL # @RETURN: 0: JAVA_PKG_STRICT is set