From 064d2c79841094b55007ffb101b56039c2cc34bc Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 17 Dec 2015 16:48:53 +0000 Subject: bitbake: toaster: remove 2 unused functions Removed check_pidbyfile and notify_chldexit functions from toaster script as they're not called in the script. (Bitbake rev: ead2823e5457c9c4d0321c2191fb99982b282d26) Signed-off-by: Ed Bartosh Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'bitbake/bin/toaster') diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 97ca17760f..1f4c400fdf 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -131,17 +131,6 @@ stop_bitbake() { lsof bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 -r kill } -check_pidbyfile() { - [ -e $1 ] && kill -0 `cat $1` 2>/dev/null -} - -notify_chldexit() { - if [ $NOTOASTERUI -eq 0 ]; then - check_pidbyfile ${BUILDDIR}/.toasterui.pid && return - stop_system - fi -} - verify_prereq() { # Verify Django version reqfile=$(python -c "import os; print os.path.realpath('$BBBASEDIR/toaster-requirements.txt')") @@ -355,7 +344,6 @@ case $CMD in # stop system on terminal exit set -o monitor trap stop_system SIGHUP - #trap notify_chldexit SIGCHLD ;; stop ) stop_system -- cgit v1.2.3-54-g00ecf