From: Alyssa Rosenzweig Date: Wed, 2 Aug 2023 14:15:21 +0000 (-0400) Subject: nir: Remove no-op remove_def_cb X-Git-Tag: upstream/23.3.3~4668 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92e59b5af5fe91dc3af6a7d1b60eb431246b2ffc;p=platform%2Fupstream%2Fmesa.git nir: Remove no-op remove_def_cb Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 3aa38f1..19daefc 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); }