diff --git a/lib/core/util.js b/lib/core/util.js index b7d7f87a34e..e530732de25 100644 --- a/lib/core/util.js +++ b/lib/core/util.js @@ -193,11 +193,6 @@ function isDestroyed (body) { return body && !!(body.destroyed || body[kDestroyed] || (stream.isDestroyed?.(body))) } -function isReadableAborted (stream) { - const state = stream?._readableState - return isDestroyed(stream) && state && !state.endEmitted -} - function destroy (stream, err) { if (stream == null || !isStream(stream) || isDestroyed(stream)) { return @@ -575,7 +570,6 @@ module.exports = { isReadable, toUSVString, isUSVString, - isReadableAborted, isBlobLike, parseOrigin, parseURL,