THRIFT-926. cpp: Remove TServerSocket as a friend class of TSocket
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:16 +0000 (17:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:16 +0000 (17:10 +0000)
This is no longer necessary now that TSocket::TSocket(int) is public.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005144 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TSocket.h

index 47a702d..97562c2 100644 (file)
@@ -35,14 +35,6 @@ namespace apache { namespace thrift { namespace transport {
  *
  */
 class TSocket : public TVirtualTransport<TSocket> {
-  /**
-   * We allow the TServerSocket acceptImpl() method to access the private
-   * members of a socket so that it can access the TSocket(int socket)
-   * constructor which creates a socket object from the raw UNIX socket
-   * handle.
-   */
-  friend class TServerSocket;
-
  public:
   /**
    * Constructs a new socket. Note that this does NOT actually connect the