mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
187b4d3fcd
commit
facd71e685
3 files changed
+3
-9
No files matched your search
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user