浏览代码

AppleTLSSession: Remove unused private member

Nils Maier 12 年之前
父节点
当前提交
4418ebdedc
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 1 2
      src/AppleTLSSession.cc
  2. 0 1
      src/AppleTLSSession.h

+ 1 - 2
src/AppleTLSSession.cc

@@ -294,8 +294,7 @@ TLSSession* TLSSession::make(TLSContext* ctx)
 }
 
 AppleTLSSession::AppleTLSSession(AppleTLSContext* ctx)
-  : ctx_(ctx),
-    sslCtx_(nullptr),
+  : sslCtx_(nullptr),
     sockfd_(0),
     state_(st_constructed),
     lastError_(noErr),

+ 0 - 1
src/AppleTLSSession.h

@@ -112,7 +112,6 @@ private:
     return ((AppleTLSSession*)conn)->sockRead(data, len);
   }
 
-  AppleTLSContext *ctx_;
   SSLContextRef sslCtx_;
   sock_t sockfd_;
   state_t state_;