Remove file transfer support.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3677 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index 8e23474..e021aa6 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -36,7 +36,7 @@
updates(false), image_getter(server->useEconomicTranslate),
drawRenderedCursor(false), removeRenderedCursor(false),
pointerEventTime(0), accessRights(AccessDefault),
- startTime(time(0)), m_pFileTransfer(0)
+ startTime(time(0))
{
setStreams(&sock->inStream(), &sock->outStream());
peerEndpoint.buf = sock->getPeerEndpoint();
@@ -46,14 +46,6 @@
setSocketTimeouts();
lastEventTime = time(0);
- // Add this client to the VNCServerST
- if (server->m_pFTManager != NULL) {
- SFileTransfer *pFT = server->m_pFTManager->createObject(sock);
- if (pFT != NULL) {
- m_pFileTransfer = pFT;
- }
- }
-
server->clients.push_front(this);
}
@@ -72,9 +64,6 @@
if (server->pointerClient == this)
server->pointerClient = 0;
- if (m_pFileTransfer)
- server->m_pFTManager->destroyObject(m_pFileTransfer);
-
// Remove this client from the server
server->clients.remove(this);
@@ -747,10 +736,3 @@
return 4;
}
-bool VNCSConnectionST::processFTMsg(int type)
-{
- if (m_pFileTransfer != NULL)
- return m_pFileTransfer->processMessages(type);
- else
- return false;
-}