diff --git a/libavformat/hls.c b/libavformat/hls.c
index c578bf86e3b8d15b28bacf53c59435dd77630e50..ae0545a08674585fb332af140d3e4f321e54a1ab 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -743,7 +743,6 @@ static int parse_playlist(HLSContext *c, const char *url,
     }
 
     if (!in) {
-#if 1
         AVDictionary *opts = NULL;
         /* Some HLS servers don't like being sent the range header */
         av_dict_set(&opts, "seekable", "0", 0);
@@ -766,12 +765,6 @@ static int parse_playlist(HLSContext *c, const char *url,
             c->playlist_pb = in;
         else
             close_in = 1;
-#else
-        ret = open_in(c, &in, url);
-        if (ret < 0)
-            return ret;
-        close_in = 1;
-#endif
     }
 
     if (av_opt_get(in, "location", AV_OPT_SEARCH_CHILDREN, &new_url) >= 0)