@@ -43,11 +43,6 @@ CConnection::CConnection() | |||
CConnection::~CConnection() | |||
{ | |||
if (csecurity) csecurity->destroy(); | |||
deleteReaderAndWriter(); | |||
} | |||
void CConnection::deleteReaderAndWriter() | |||
{ | |||
delete reader_; | |||
reader_ = 0; | |||
delete writer_; |
@@ -101,13 +101,6 @@ namespace rfb { | |||
// Other methods | |||
// deleteReaderAndWriter() deletes the reader and writer associated with | |||
// this connection. This may be useful if you want to delete the streams | |||
// before deleting the SConnection to make sure that no attempt by the | |||
// SConnection is made to read or write. | |||
// XXX Do we really need this at all??? | |||
void deleteReaderAndWriter(); | |||
CMsgReader* reader() { return reader_; } | |||
CMsgWriter* writer() { return writer_; } | |||
@@ -67,11 +67,6 @@ SConnection::SConnection() | |||
SConnection::~SConnection() | |||
{ | |||
if (ssecurity) ssecurity->destroy(); | |||
deleteReaderAndWriter(); | |||
} | |||
void SConnection::deleteReaderAndWriter() | |||
{ | |||
delete reader_; | |||
reader_ = 0; | |||
delete writer_; |
@@ -140,13 +140,6 @@ namespace rfb { | |||
bool authenticated() { return (state_ == RFBSTATE_INITIALISATION || | |||
state_ == RFBSTATE_NORMAL); } | |||
// deleteReaderAndWriter() deletes the reader and writer associated with | |||
// this connection. This may be useful if you want to delete the streams | |||
// before deleting the SConnection to make sure that no attempt by the | |||
// SConnection is made to read or write. | |||
// XXX Do we really need this at all??? | |||
void deleteReaderAndWriter(); | |||
// throwConnFailedException() prints a message to the log, sends a conn | |||
// failed message to the client (if possible) and throws a | |||
// ConnFailedException. |