Skip to content

Commit

Permalink
remove unused concat helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan-Arrowood committed Mar 18, 2024
1 parent a6ddd4c commit 7c7c6b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Expand Up @@ -4,7 +4,6 @@ import { DetachedPromise } from '../../lib/detached-promise'
import { scheduleImmediate, atLeastOneTask } from '../../lib/scheduler'
import { ENCODED_TAGS } from './encodedTags'
import {
concatUint8Arrays,
indexOfUint8Array,
isEquivalentUint8Arrays,
removeFromUint8Array,
Expand Down
12 changes: 0 additions & 12 deletions packages/next/src/server/stream-utils/uint8array-helpers.ts
Expand Up @@ -57,15 +57,3 @@ export function removeFromUint8Array(a: Uint8Array, b: Uint8Array) {
return a
}
}

/**
* Combines two Uint8Arrays together in order.
*
* `(a, b)` will be returned as `a + b`
*/
export function concatUint8Arrays(a: Uint8Array, b: Uint8Array) {
const result = new Uint8Array(a.length + b.length)
result.set(a)
result.set(b, a.length)
return result
}

0 comments on commit 7c7c6b3

Please sign in to comment.