From f85336594c3cb0b04ae525041c807fc8c7e5ee80 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 25 Jul 2013 13:09:17 +0000 Subject: [PATCH] sh: Remove output.c's reset() handler. These cleanup operations are not needed because they are already performed after an optimized command substitution (whether there was an error or not). --- bin/sh/output.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/bin/sh/output.c b/bin/sh/output.c index d26adce149be..bf8e17d97ece 100644 --- a/bin/sh/output.c +++ b/bin/sh/output.c @@ -75,25 +75,6 @@ struct output memout = {NULL, 0, NULL, 0, MEM_OUT, 0}; struct output *out1 = &output; struct output *out2 = &errout; - - -#ifdef mkinit - -INCLUDE "output.h" -INCLUDE "memalloc.h" - -RESET { - out1 = &output; - out2 = &errout; - if (memout.buf != NULL) { - ckfree(memout.buf); - memout.buf = NULL; - } -} - -#endif - - void outcslow(int c, struct output *file) {