toolchain-funcs.eclass: Remove code that has become redundant.
authorUlrich Müller <ulm@gentoo.org>
Mon, 27 Jun 2016 07:24:58 +0000 (09:24 +0200)
committerUlrich Müller <ulm@gentoo.org>
Mon, 27 Jun 2016 07:30:08 +0000 (09:30 +0200)
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.

eclass/toolchain-funcs.eclass

index 2652e0eef9204c9f7d2b0fba28fc53de1f19d1d4..2af9b024ae373032e00fc0953c2215e853f0b44b 100644 (file)
@@ -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;;