From 67ee7ddfb7d50005e63f4c939b36d15210a2b124 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 5 Oct 2022 12:13:16 -0600 Subject: [PATCH] draw: remove unused draw_has_llvm() Signed-off-by: Brian Paul Acked-by: Dave Airlie Part-of: --- src/gallium/auxiliary/draw/draw_context.c | 22 ++++++---------------- src/gallium/auxiliary/draw/draw_context.h | 1 - 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 1f67970f32d..81ceefc32bb 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -49,30 +49,20 @@ #include "gallivm/lp_bld_init.h" #include "gallivm/lp_bld_limits.h" #include "draw_llvm.h" - -boolean -draw_get_option_use_llvm(void) -{ - return debug_get_bool_option("DRAW_USE_LLVM", TRUE); -} -#else -boolean -draw_get_option_use_llvm(void) -{ - return FALSE; -} #endif -bool -draw_has_llvm(void) + +boolean +draw_get_option_use_llvm(void) { #ifdef DRAW_LLVM_AVAILABLE - return draw_get_option_use_llvm(); + return debug_get_bool_option("DRAW_USE_LLVM", TRUE); #else - return false; + return FALSE; #endif } + /** * Create new draw module context with gallivm state for LLVM JIT. */ diff --git a/src/gallium/auxiliary/draw/draw_context.h b/src/gallium/auxiliary/draw/draw_context.h index d42e985219f..3986d6469e3 100644 --- a/src/gallium/auxiliary/draw/draw_context.h +++ b/src/gallium/auxiliary/draw/draw_context.h @@ -67,7 +67,6 @@ struct draw_so_target { int internal_offset; }; -bool draw_has_llvm(void); struct draw_context *draw_create(struct pipe_context *pipe);