瀏覽代碼

Remove unused deleteReaderAndWriter() method

tags/v1.6.90
Pierre Ossman 8 年之前
父節點
當前提交
07eec1b59b
共有 4 個文件被更改,包括 0 次插入24 次删除
  1. 0
    5
      common/rfb/CConnection.cxx
  2. 0
    7
      common/rfb/CConnection.h
  3. 0
    5
      common/rfb/SConnection.cxx
  4. 0
    7
      common/rfb/SConnection.h

+ 0
- 5
common/rfb/CConnection.cxx 查看文件

@@ -43,11 +43,6 @@ CConnection::CConnection()
CConnection::~CConnection()
{
if (csecurity) csecurity->destroy();
deleteReaderAndWriter();
}

void CConnection::deleteReaderAndWriter()
{
delete reader_;
reader_ = 0;
delete writer_;

+ 0
- 7
common/rfb/CConnection.h 查看文件

@@ -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_; }


+ 0
- 5
common/rfb/SConnection.cxx 查看文件

@@ -67,11 +67,6 @@ SConnection::SConnection()
SConnection::~SConnection()
{
if (ssecurity) ssecurity->destroy();
deleteReaderAndWriter();
}

void SConnection::deleteReaderAndWriter()
{
delete reader_;
reader_ = 0;
delete writer_;

+ 0
- 7
common/rfb/SConnection.h 查看文件

@@ -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.

Loading…
取消
儲存