From ff277c54129d90c53877eebb94a88bf683de031e Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 23 May 2024 12:52:07 -0700 Subject: [PATCH] Remove apparently unused 'pez' function from envsetup.sh Bug: 340648588 Test: treehugger, code search Change-Id: I0a433b36c21a0bda4635463ab70f88d7ae40878c --- envsetup.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index d711b69634..63e7eb1720 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1193,19 +1193,6 @@ function _complete_android_module_names() { COMPREPLY=( $(allmod | grep -E "^$word") ) } -# Print colored exit condition -function pez { - "$@" - local retval=$? - if [ $retval -ne 0 ] - then - echo $'\E'"[0;31mFAILURE\e[00m" - else - echo $'\E'"[0;32mSUCCESS\e[00m" - fi - return $retval -} - function get_make_command() { # If we're in the top of an Android tree, use soong_ui.bash instead of make @@ -1345,6 +1332,7 @@ unset outmod unset overrideflags unset owngrep unset pathmod +unset pez unset pygrep unset qpid unset rcgrep