Commit 94a2b9d0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

No need to check HAVE_GETENV

We have had a replacement for quite a while already.
parent 6dd92709
...@@ -465,7 +465,6 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access, ...@@ -465,7 +465,6 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
"in registry." ); "in registry." );
} }
} }
#elif defined( HAVE_GETENV )
else else
{ {
psz = getenv( "http_proxy" ); psz = getenv( "http_proxy" );
...@@ -475,7 +474,6 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access, ...@@ -475,7 +474,6 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
vlc_UrlParse( &p_sys->proxy, psz, 0 ); vlc_UrlParse( &p_sys->proxy, psz, 0 );
} }
} }
#endif
if( psz ) /* No, this is NOT a use-after-free error */ if( psz ) /* No, this is NOT a use-after-free error */
{ {
......
...@@ -107,7 +107,6 @@ int MMSHOpen( access_t *p_access ) ...@@ -107,7 +107,6 @@ int MMSHOpen( access_t *p_access )
vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 ); vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 );
free( psz_proxy ); free( psz_proxy );
} }
#ifdef HAVE_GETENV
else else
{ {
const char *http_proxy = getenv( "http_proxy" ); const char *http_proxy = getenv( "http_proxy" );
...@@ -117,7 +116,6 @@ int MMSHOpen( access_t *p_access ) ...@@ -117,7 +116,6 @@ int MMSHOpen( access_t *p_access )
vlc_UrlParse( &p_sys->proxy, http_proxy, 0 ); vlc_UrlParse( &p_sys->proxy, http_proxy, 0 );
} }
} }
#endif
if( p_sys->b_proxy ) if( p_sys->b_proxy )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment