From c8b5e32b7cab70921fca129c3b9d46fcd5acdf2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 14 Apr 2009 14:27:02 +0300 Subject: [PATCH] No need to check for strtof() here --- modules/audio_filter/equalizer.c | 4 ---- modules/gui/macosx/equalizer.m | 4 ---- 2 files changed, 8 deletions(-) diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c index 40bbcc16b3..512677a963 100644 --- a/modules/audio_filter/equalizer.c +++ b/modules/audio_filter/equalizer.c @@ -588,11 +588,7 @@ static int BandsCallback( vlc_object_t *p_this, char const *psz_cmd, break; /* Read dB -20/20 */ -#ifdef HAVE_STRTOF f = strtof( p, &psz_next ); -#else - f = (float)strtod( p, &psz_next ); -#endif if( psz_next == p ) break; /* no conversion */ diff --git a/modules/gui/macosx/equalizer.m b/modules/gui/macosx/equalizer.m index 38c15bfe49..4f78770d3f 100644 --- a/modules/gui/macosx/equalizer.m +++ b/modules/gui/macosx/equalizer.m @@ -215,11 +215,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf, for( i = 0; i < 10; i++ ) { /* Read dB -20/20 */ -#ifdef HAVE_STRTOF f_band[i] = strtof( psz_bands, &p_next ); -#else - f_band[i] = (float)strtod( psz_bands, &p_next ); -#endif if( !p_next || p_next == psz_bands ) break; /* strtof() failed */ if( !*psz_bands ) break; /* end of line */ -- 2.39.2