[7/7] configure: Drop unused helper function test_cflags_cpp()

Message ID 20180320094930.5424-8-diego@biurrun.de
State Committed
Commit 2124a97a4998413c7e81539b16b01ef6ac570ea9
Headers show
Series
  • [1/7] configure: Document available options for the --toolchain parameter
Related show

Commit Message

Diego Biurrun March 20, 2018, 9:49 a.m.
---
 configure | 13 -------------
 1 file changed, 13 deletions(-)

Comments

James Almer March 22, 2018, 2:27 p.m. | #1
On 3/20/2018 6:49 AM, Diego Biurrun wrote:
> ---
>  configure | 13 -------------
>  1 file changed, 13 deletions(-)
> 
> diff --git a/configure b/configure
> index 830f754412..6689858d57 100755
> --- a/configure
> +++ b/configure
> @@ -1042,19 +1042,6 @@ check_cpp_condition(){
>      test_cpp_condition "$@" && enable $name
>  }
>  
> -test_cflags_cpp(){
> -    log test_cflags_cpp "$@"
> -    flags=$1
> -    condition=$2
> -    shift 2
> -    set -- $($cflags_filter "$flags")
> -    test_cpp "$@" <<EOF
> -#if !($condition)
> -#error "unsatisfied condition: $condition"
> -#endif
> -EOF
> -}
> -
>  check_lib(){
>      log check_lib "$@"
>      name="$1"

Ok

Patch

diff --git a/configure b/configure
index 830f754412..6689858d57 100755
--- a/configure
+++ b/configure
@@ -1042,19 +1042,6 @@  check_cpp_condition(){
     test_cpp_condition "$@" && enable $name
 }
 
-test_cflags_cpp(){
-    log test_cflags_cpp "$@"
-    flags=$1
-    condition=$2
-    shift 2
-    set -- $($cflags_filter "$flags")
-    test_cpp "$@" <<EOF
-#if !($condition)
-#error "unsatisfied condition: $condition"
-#endif
-EOF
-}
-
 check_lib(){
     log check_lib "$@"
     name="$1"