quic: remove unused env_ variable in session_manager.h/cc

Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63177
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
James M Snell committed 2026-05-09 10:30:06 -07:00
1 parent 187b4d3fcd
commit facd71e685
3 files changed
+3 -9

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ BindingData::BindingData(Realm* realm, Local<Object> object)
SessionManager& BindingData::session_manager() {
if (!session_manager_) {
session_manager_ = std::make_unique<SessionManager>(env());
session_manager_ = std::make_unique<SessionManager>();
}
return *session_manager_;
}
-4
View File
@@ -10,10 +10,6 @@
namespace node::quic {
SessionManager::SessionManager(Environment* env) : env_(env) {}
SessionManager::~SessionManager() = default;
BaseObjectPtr<Session> SessionManager::FindSession(const CID& cid) {
// Direct SCID match.
auto it = sessions_.find(cid);
+2 -4
View File
@@ -24,8 +24,8 @@ class Session;
// It is not exposed to JavaScript.
class SessionManager final {
public:
explicit SessionManager(Environment* env);
~SessionManager();
explicit SessionManager() = default;
~SessionManager() = default;
// Session routing. The sessions_ map holds BaseObjectPtr<Session> (owning
// references). SessionManager is the single authority for session ownership.
@@ -78,8 +78,6 @@ class SessionManager final {
bool is_empty() const;
private:
Environment* env_;
// The sessions_ map holds strong owning references keyed by locally-
// generated SCIDs. This is the single source of truth for session
// ownership.