From d86ff608bb5734560b48413ca9beb3391af9c3e7 Mon Sep 17 00:00:00 2001 From: Jimmy Leung <43258070+hkleungai@users.noreply.github.com> Date: Mon, 26 May 2025 02:24:01 +0800 Subject: [PATCH] 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 Reviewed-By: Matteo Collina Reviewed-By: Rafael Gonzaga Reviewed-By: James M Snell --- lib/internal/http2/core.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index 358c4f5edeb..76dc5b60baa 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -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);