nir: Remove no-op remove_def_cb

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
This commit is contained in:
Alyssa Rosenzweig
2023-08-02 10:15:21 -04:00
committed by Marge Bot
parent b2ddbecaad
commit 92e59b5af5

View File

@@ -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);
}