Skip to content

Commit

Permalink
refactor: remove sort logic (#2834)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx committed Feb 24, 2024
1 parent 3a9723d commit cc7ee58
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 329 deletions.
50 changes: 0 additions & 50 deletions benchmarks/sort.mjs

This file was deleted.

3 changes: 1 addition & 2 deletions lib/web/fetch/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const {
} = require('./util')
const { webidl } = require('./webidl')
const assert = require('node:assert')
const { sort } = require('./sort')

const kHeadersMap = Symbol('headers map')
const kHeadersSortedMap = Symbol('headers map sorted')
Expand Down Expand Up @@ -328,7 +327,7 @@ class HeadersList {
// 3.2.2. Assert: value is non-null.
assert(value !== null)
}
return sort(array, compareHeaderName)
return array.sort(compareHeaderName)
}
}
}
Expand Down
187 changes: 0 additions & 187 deletions lib/web/fetch/sort.js

This file was deleted.

90 changes: 0 additions & 90 deletions test/fetch/sort.js

This file was deleted.

0 comments on commit cc7ee58

Please sign in to comment.