From 5e0030b4cb4c06e926effa5cdb68f8f2fa295fb7 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 23 Mar 2010 13:33:55 +0000 Subject: [PATCH] widl: Remove the current_func variable. It's only set, never read from. --- tools/widl/typegen.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 771cd2ac20e..2433b8bdb71 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -46,7 +46,6 @@ /* value to add on to round size up to a multiple of alignment */ #define ROUNDING(size, alignment) (((alignment) - 1) - (((size) + ((alignment) - 1)) & ((alignment) - 1))) -static const var_t *current_func; static const type_t *current_structure; static const type_t *current_iface; @@ -2916,7 +2915,6 @@ static unsigned int process_tfs_stmts(FILE *file, const statement_list_t *stmts, file); } - current_func = func; if (type_get_function_args(func->type)) LIST_FOR_EACH_ENTRY( var, type_get_function_args(func->type), const var_t, entry ) update_tfsoff(