http2: remove no longer userful options.selectPadding

This is a followup cleanup on a previous PR. Current source code and doc
explicitly states that `selectPadding` has been removed for all exports.

Refs: https://github.com/nodejs/node/pull/29144
Refs: https://nodejs.org/api/http2.html
PR-URL: https://github.com/nodejs/node/pull/58373
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Jimmy Leung authored and Michaël Zasso committed 2025-05-31 13:30:48 +02:00
1 parent 4606a6792b
commit d86ff608bb
1 file changed
-3
-3
View File
@@ -247,7 +247,6 @@ const kPendingRequestCalls = Symbol('kPendingRequestCalls');
const kProceed = Symbol('proceed');
const kRemoteSettings = Symbol('remote-settings');
const kRequestAsyncResource = Symbol('requestAsyncResource');
const kSelectPadding = Symbol('select-padding');
const kSentHeaders = Symbol('sent-headers');
const kSentTrailers = Symbol('sent-trailers');
const kServer = Symbol('server');
@@ -1100,8 +1099,6 @@ function setupHandle(socket, type, options) {
const handle = new binding.Http2Session(type);
handle[kOwner] = this;
if (typeof options.selectPadding === 'function')
this[kSelectPadding] = options.selectPadding;
handle.consume(socket._handle);
handle.ongracefulclosecomplete = this[kMaybeDestroy].bind(this, null);