Remove warnings (work package 1)
[anna.git] / source / comm / ClientSocket.cpp
index b531581..3bff830 100644 (file)
@@ -697,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: ";
@@ -719,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);