eutils.eclass: Remove validate_desktop_entries function.
authorUlrich Müller <ulm@gentoo.org>
Thu, 23 Nov 2017 23:38:13 +0000 (00:38 +0100)
committerUlrich Müller <ulm@gentoo.org>
Thu, 30 Nov 2017 19:09:27 +0000 (20:09 +0100)
This function is no longer used in the tree. It was deprecated more
than 8 months ago in commit 650a1ebe8f63d3750908142e2117b24a8efc9403.

eclass/eutils.eclass

index 7fd4b847a649e31dc974110a13550872894329a1..972a2138aad7b98efd4f04c5ff306483cf0faf12 100644 (file)
@@ -314,36 +314,6 @@ _eutils_eprefix_init() {
        has "${EAPI:-0}" 0 1 2 && : ${ED:=${D}} ${EPREFIX:=} ${EROOT:=${ROOT}}
 }
 
-# @FUNCTION: validate_desktop_entries
-# @USAGE: [directories]
-# @DESCRIPTION:
-# Validate desktop entries using desktop-file-utils
-validate_desktop_entries() {
-       eqawarn "validate_desktop_entries is deprecated and should be not be used."
-       eqawarn ".desktop file validation is done implicitly by Portage now."
-
-       _eutils_eprefix_init
-       if [[ -x "${EPREFIX}"/usr/bin/desktop-file-validate ]] ; then
-               einfo "Checking desktop entry validity"
-               local directories=""
-               for d in /usr/share/applications $@ ; do
-                       [[ -d ${ED}${d} ]] && directories="${directories} ${ED}${d}"
-               done
-               if [[ -n ${directories} ]] ; then
-                       for FILE in $(find ${directories} -name "*\.desktop" \
-                                                       -not -path '*.hidden*' | sort -u 2>/dev/null)
-                       do
-                               local temp=$(desktop-file-validate ${FILE} | grep -v "warning:" | \
-                                                               sed -e "s|error: ||" -e "s|${FILE}:|--|g" )
-                               [[ -n $temp ]] && elog ${temp/--/${FILE/${ED}/}:}
-                       done
-               fi
-               echo ""
-       else
-               einfo "Passing desktop entry validity check. Install dev-util/desktop-file-utils, if you want to help to improve Gentoo."
-       fi
-}
-
 # @FUNCTION: make_session_desktop
 # @USAGE: <title> <command> [command args...]
 # @DESCRIPTION: