Index: net/third_party/nss/ssl/sslgathr.c |
diff --git a/net/third_party/nss/ssl/sslgathr.c b/net/third_party/nss/ssl/sslgathr.c |
index 6c17eb00fae0fe73e6a2a2b9470376f764f204d5..bdf470b0cf0f1a9672d400da13152e9ca6f89872 100644 |
--- a/net/third_party/nss/ssl/sslgathr.c |
+++ b/net/third_party/nss/ssl/sslgathr.c |
@@ -364,34 +364,6 @@ ssl2_GatherRecord(sslSocket *ss, int flags) |
return ssl2_GatherData(ss, &ss->gs, flags); |
} |
-/* |
- * Returns +1 when it has gathered a complete SSLV2 record. |
- * Returns 0 if it hits EOF. |
- * Returns -1 (SECFailure) on any error |
- * Returns -2 (SECWouldBlock) |
- * |
- * Called from SocksStartGather in sslsocks.c |
- * Caller must hold RecvBufLock. |
- */ |
-int |
-ssl2_StartGatherBytes(sslSocket *ss, sslGather *gs, unsigned int count) |
-{ |
- int rv; |
- |
- PORT_Assert( ss->opt.noLocks || ssl_HaveRecvBufLock(ss) ); |
- gs->state = GS_DATA; |
- gs->remainder = count; |
- gs->count = count; |
- gs->offset = 0; |
- if (count > gs->buf.space) { |
- rv = sslBuffer_Grow(&gs->buf, count); |
- if (rv) { |
- return rv; |
- } |
- } |
- return ssl2_GatherData(ss, gs, 0); |
-} |
- |
/* Caller should hold RecvBufLock. */ |
SECStatus |
ssl_InitGather(sslGather *gs) |