Unreviewed, rolling out r220271.
[WebKit.git] / Source / WebCore / Modules / fetch / FetchBody.cpp
index a804fe7..931f058 100644 (file)
@@ -152,6 +152,7 @@ void FetchBody::consume(FetchBodyOwner& owner, Ref<DeferredPromise>&& promise)
     m_consumer.resolve(WTFMove(promise));
 }
 
+#if ENABLE(STREAMS_API)
 void FetchBody::consumeAsStream(FetchBodyOwner& owner, FetchResponseSource& source)
 {
     bool closeStream = false;
@@ -182,6 +183,7 @@ void FetchBody::consumeAsStream(FetchBodyOwner& owner, FetchResponseSource& sour
     if (closeStream)
         source.close();
 }
+#endif
 
 void FetchBody::consumeArrayBuffer(Ref<DeferredPromise>&& promise)
 {