_childIdToChildSession[childId] is not used

This commit is contained in:
Tor Lillqvist 2015-04-22 19:26:35 +03:00
parent e83559795d
commit 08f53df08a
2 changed files with 0 additions and 6 deletions

View file

@ -81,7 +81,6 @@ void LOOLSession::sendBinaryFrame(const char *buffer, int length)
_ws->sendFrame(buffer, length, WebSocket::FRAME_BINARY);
}
std::map<UInt64, MasterProcessSession*> MasterProcessSession::_childIdToChildSession;
std::set<UInt64> MasterProcessSession::_pendingPreSpawnedChildren;
std::set<MasterProcessSession*> MasterProcessSession::_availableChildSessions;
std::map<Process::PID, UInt64> MasterProcessSession::_childProcesses;
@ -172,7 +171,6 @@ bool MasterProcessSession::handleInput(char *buffer, int length)
}
_pendingPreSpawnedChildren.erase(childId);
_availableChildSessions.insert(this);
_childIdToChildSession[childId] = this;
_childId = childId;
}
else if (_kind == Kind::ToPrisoner)

View file

@ -122,10 +122,6 @@ protected:
// per document being edited (i.e., per child process).
MasterProcessSession *_peer;
// Map from child ids to the corresponding session to the child
// process.
static std::map<Poco::UInt64, MasterProcessSession*> _childIdToChildSession;
// Pre-spawned child processes that haven't yet connected.
static std::set<Poco::UInt64> _pendingPreSpawnedChildren;