From 92e59b5af5fe91dc3af6a7d1b60eb431246b2ffc Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 2 Aug 2023 10:15:21 -0400 Subject: [PATCH] nir: Remove no-op remove_def_cb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 3aa38f17c36..19daefcf689 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1133,18 +1133,9 @@ remove_use_cb(nir_src *src, void *state) return true; } -static bool -remove_def_cb(nir_dest *dest, void *state) -{ - (void) state; - - return true; -} - static void remove_defs_uses(nir_instr *instr) { - nir_foreach_dest(instr, remove_def_cb, instr); nir_foreach_src(instr, remove_use_cb, instr); }