Skip to content

Commit

Permalink
util: remove isReadableAborted (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Apr 12, 2024
1 parent ec74bf7 commit 8f192e3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -575,7 +570,6 @@ module.exports = {
isReadable,
toUSVString,
isUSVString,
isReadableAborted,
isBlobLike,
parseOrigin,
parseURL,
Expand Down

0 comments on commit 8f192e3

Please sign in to comment.