summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2016-04-13 17:11:53 -0400
committerJason Ekstrand <[email protected]>2016-05-05 16:19:42 -0700
commit4fab8dd5ea0730be7a484ed4b4bf80598c21cbfa (patch)
treeb26a1a0f73321c568c10f9d8415d0b5834b91315 /src/compiler
parent7c36f9eb52ead4cb5cd0f81d1f282e0568223ca3 (diff)
nir: remove now-unused nir_foreach_block*_call()
Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 98451c6dbb9..8a616d4ef5f 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2180,44 +2180,6 @@ nir_block *nir_cf_node_cf_tree_next(nir_cf_node *node);
block != nir_cf_node_cf_tree_next(node); \
block = nir_block_cf_tree_next(block))
-typedef bool (*nir_foreach_block_cb)(nir_block *block, void *state);
-
-static inline bool
-nir_foreach_block_call(nir_function_impl *impl, nir_foreach_block_cb cb,
- void *state)
-{
- nir_foreach_block_safe(block, impl) {
- if (!cb(block, state))
- return false;
- }
-
- return true;
-}
-
-static inline bool
-nir_foreach_block_reverse_call(nir_function_impl *impl, nir_foreach_block_cb cb,
- void *state)
-{
- nir_foreach_block_reverse_safe(block, impl) {
- if (!cb(block, state))
- return false;
- }
-
- return true;
-}
-
-static inline bool
-nir_foreach_block_in_cf_node_call(nir_cf_node *node, nir_foreach_block_cb cb,
- void *state)
-{
- nir_foreach_block_in_cf_node(block, node) {
- if (!cb(block, state))
- return false;
- }
-
- return true;
-}
-
/* If the following CF node is an if, this function returns that if.
* Otherwise, it returns NULL.
*/