nir: remove now-unused nir_foreach_block*_call()
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 13 Apr 2016 21:11:53 +0000 (17:11 -0400)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 5 May 2016 23:19:42 +0000 (16:19 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir.h

index 98451c6dbb9c1c8cb07f258aaedbf2ebdcb854f6..8a616d4ef5fa6f9d67439b3ae35fa272f27cc530 100644 (file)
@@ -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.
  */