summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/WhatsApp/src/WASocketConnection.cpp15
-rw-r--r--protocols/WhatsApp/src/WASocketConnection.h1
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp1
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp1
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h1
5 files changed, 0 insertions, 19 deletions
diff --git a/protocols/WhatsApp/src/WASocketConnection.cpp b/protocols/WhatsApp/src/WASocketConnection.cpp
index 6852fb92dd..00e3aa9933 100644
--- a/protocols/WhatsApp/src/WASocketConnection.cpp
+++ b/protocols/WhatsApp/src/WASocketConnection.cpp
@@ -134,21 +134,6 @@ void WASocketConnection::forceShutdown()
Netlib_Shutdown(this->hConn);
}
-void WASocketConnection::dump(const void *pData, int length)
-{
- BYTE *pBuf = (BYTE*)pData;
- while (length > 0) {
- int portion = (length < 16) ? length : 16;
-
- char str[100];
- for (int i = 0; i < portion; i++)
- sprintf(str + i * 3, "%02X ", *pBuf++);
- Netlib_Logf(WASocketConnection::hNetlibUser, "DATA: %s", str);
-
- length -= portion;
- }
-}
-
void WASocketConnection::log(const char *str)
{
Netlib_Logf(WASocketConnection::hNetlibUser, "STR: %s", str);
diff --git a/protocols/WhatsApp/src/WASocketConnection.h b/protocols/WhatsApp/src/WASocketConnection.h
index e6dcc472a6..95b30c274c 100644
--- a/protocols/WhatsApp/src/WASocketConnection.h
+++ b/protocols/WhatsApp/src/WASocketConnection.h
@@ -31,7 +31,6 @@ public:
int waitForRead();
void forceShutdown();
- void dump(const void *buf, int length);
void log(const char *str);
static void initNetwork(HANDLE hNetlibUser) throw (WAException);
diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp
index ead6a9ac06..851d4599da 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp
+++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp
@@ -86,7 +86,6 @@ void BinTreeNodeReader::decodeStream(int flags, int offset, int length)
this->conn->inputKey.decodeMessage(pData, offset + length, 0, length);
}
- this->rawIn->dump(pData + offset, length);
if (this->in != NULL)
delete this->in;
diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp
index 00909b6855..e527e2c25b 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp
+++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp
@@ -48,7 +48,6 @@ void BinTreeNodeWriter::processBuffer()
throw WAException("Buffer too large: " + num3, WAException::CORRUPT_STREAM_EX, 0);
std::vector<unsigned char>& buffer = out->getBuffer();
- this->realOut->dump(buffer.data(), (int)buffer.size());
if (bSecure) {
int num4 = (int)num3 - 4;
this->conn->outputKey.encodeMessage(buffer.data(), this->dataBegin + 3 + num4, this->dataBegin + 3, num4);
diff --git a/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h b/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h
index 82123f2fd8..0661b23945 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h
+++ b/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h
@@ -20,7 +20,6 @@ public:
virtual int waitForRead() = 0;
virtual void forceShutdown() = 0;
- virtual void dump(const void *buf, int length) = 0;
virtual void log(const char *str) = 0;
};