From 0d6bbb0497016d23e1e480a47b2e0823918de021 Mon Sep 17 00:00:00 2001
From: Denys Vlasenko <vda.linux@googlemail.com>
Date: Tue, 27 Mar 2012 14:32:48 +0200
Subject: hush: remove unused member struct command::is_stopped

function                                             old     new   delta
builtin_umask                                        133     132      -1
checkjobs                                            551     544      -7
builtin_fg_bg                                        291     267     -24

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
---
 shell/hush.c | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'shell')

diff --git a/shell/hush.c b/shell/hush.c
index 7a34f59ae..180ae4a62 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -524,7 +524,6 @@ typedef enum redir_type {
 struct command {
 	pid_t pid;                  /* 0 if exited */
 	int assignment_cnt;         /* how many argv[i] are assignments? */
-	smallint is_stopped;        /* is the command currently running? */
 	smallint cmd_type;          /* CMD_xxx */
 #define CMD_NORMAL   0
 #define CMD_SUBSHELL 1
@@ -6767,7 +6766,6 @@ static int checkjobs(struct pipe *fg_pipe)
 					}
 					fg_pipe->cmds[i].cmd_exitcode = ex;
 				} else {
-					fg_pipe->cmds[i].is_stopped = 1;
 					fg_pipe->stopped_cmds++;
 				}
 				debug_printf_jobs("fg_pipe: alive_cmds %d stopped_cmds %d\n",
@@ -6828,7 +6826,6 @@ static int checkjobs(struct pipe *fg_pipe)
 			}
 		} else {
 			/* child stopped */
-			pi->cmds[i].is_stopped = 1;
 			pi->stopped_cmds++;
 		}
 #endif
@@ -8596,7 +8593,6 @@ static int FAST_FUNC builtin_fg_bg(char **argv)
 	debug_printf_jobs("reviving %d procs, pgrp %d\n", pi->num_cmds, pi->pgrp);
 	for (i = 0; i < pi->num_cmds; i++) {
 		debug_printf_jobs("reviving pid %d\n", pi->cmds[i].pid);
-		pi->cmds[i].is_stopped = 0;
 	}
 	pi->stopped_cmds = 0;
 
-- 
cgit v1.2.3-55-g6feb