From: Ulrich Müller Date: Mon, 27 Jun 2016 07:24:58 +0000 (+0200) Subject: toolchain-funcs.eclass: Remove code that has become redundant. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=333d55fbc810077961b8fe346c8157ab25e13597;p=gentoo.git toolchain-funcs.eclass: Remove code that has become redundant. After commit 81c226e451be564a545696f93fc5880ebc160812, type cannot be "kern" in these two places, so ninj would always return its second argument, i.e. it can be replaced by simple echo. --- diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 2652e0eef920..2af9b024ae37 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -497,8 +497,6 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } echo powerpc elif [[ ${host} == powerpc64* ]] ; then echo ppc64 - elif [[ ${PROFILE_ARCH} == "ppc64" ]] ; then - ninj ppc64 ppc else echo ppc fi @@ -522,7 +520,7 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } if [[ ${type} == "kern" ]] ; then echo x86 else - ninj x86_64 amd64 + echo amd64 fi ;; xtensa*) echo xtensa;;