Remove warnings (work package 1)
[anna.git] / source / comm / ClientSocket.cpp
index acf2bd3..3bff830 100644 (file)
@@ -297,7 +297,6 @@ throw() {
 comm::Socket::Notify::_v comm::ClientSocket::receive()
 throw(RuntimeException) {
    Notify::_v result;
-   int queueLength = 0;
 
    if (a_reader.getMaxSize() == 0) {
       string msg(asString());
@@ -698,9 +697,6 @@ string comm::ClientSocket::asString() const
 throw() {
    string msg("comm::ClientSocket { ");
 
-   if (this == NULL)
-      return msg += " <freed> }";
-
    msg += Socket::asString();
    msg += functions::asText(" | RcvBufferSize: ", a_rcvBufferSize);
    msg += " bytes | Status: ";
@@ -720,11 +716,6 @@ xml::Node* comm::ClientSocket::asXML(xml::Node* parent) const
 throw(RuntimeException) {
    xml::Node* clientSocket = parent->createChild("comm.ClientSocket");
 
-   if (this == NULL) {
-      clientSocket->createAttribute("Freed", "yes");
-      return clientSocket;
-   }
-
    Socket::asXML(clientSocket);
    clientSocket->createAttribute("Status", Status::asString(a_status));
    clientSocket->createAttribute("RcvBufferSize", a_rcvBufferSize);