summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WASocketConnection.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-02-09 12:21:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-02-09 12:21:12 +0000
commitfd8fdaa7ade16132fd3f23db5b0727e3615038ad (patch)
tree7b3f216bfe6edbe91b166cb67fb24fee2ae3e8cd /protocols/WhatsApp/src/WASocketConnection.cpp
parenta2e3d77c3aa849f3dd29be0ef114f9ea7e126146 (diff)
- code cleaning;
- warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@16250 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WASocketConnection.cpp')
-rw-r--r--protocols/WhatsApp/src/WASocketConnection.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/protocols/WhatsApp/src/WASocketConnection.cpp b/protocols/WhatsApp/src/WASocketConnection.cpp
index 0de6be5884..e6b53aa419 100644
--- a/protocols/WhatsApp/src/WASocketConnection.cpp
+++ b/protocols/WhatsApp/src/WASocketConnection.cpp
@@ -47,29 +47,6 @@ void WASocketConnection::makeNonBlock()
throw WAException("Error setting socket nonblocking!", WAException::SOCKET_EX, WAException::SOCKET_EX_OPEN);
}
-int WASocketConnection::waitForRead()
-{
- // #TODO Is this called at all?
- return 0;
-
- fd_set rfds;
- struct timeval tv;
- struct timeval* tvp;
- int fd = 0;
-
- FD_ZERO(&rfds);
- FD_SET(fd, &rfds);
- tv.tv_sec = 600; //ApplicationData::SELECT_TIMEOUT;
- tv.tv_usec = 0; // 5000000;
- tvp = &tv;
-
- int retval = select(/*fd + 1*/ 0, &rfds, NULL, NULL, tvp);
- if (!FD_ISSET(fd, &rfds))
- retval = 0;
-
- return retval;
-}
-
void WASocketConnection::flush() {}
void WASocketConnection::write(const std::vector<unsigned char> &bytes, int length)