]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
httpSocketOpen unused code
authorwessels <>
Tue, 30 Jun 1998 01:29:01 +0000 (01:29 +0000)
committerwessels <>
Tue, 30 Jun 1998 01:29:01 +0000 (01:29 +0000)
src/http.cc

index 91ffb01a13ec9d6a3311d0686290e7ca60765fb4..305809ed6db77b4b67f7ed186cdaff6c07dbac97 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.289 1998/06/29 15:22:51 wessels Exp $
+ * $Id: http.cc,v 1.290 1998/06/29 19:29:01 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -127,7 +127,6 @@ static void httpAppendRequestHeader(char *hdr, const char *line, size_t * sz, si
 static void httpCacheNegatively(StoreEntry *);
 static void httpMakePrivate(StoreEntry *);
 static void httpMakePublic(StoreEntry *);
-static int httpSocketOpen(StoreEntry *, request_t *);
 static int httpCachableReply(HttpStateData *);
 
 static void
@@ -788,27 +787,6 @@ httpSendRequest(int fd, void *data)
     comm_write_mbuf(fd, mb, sendHeaderDone, httpState);
 }
 
-static int
-httpSocketOpen(StoreEntry * entry, request_t * request)
-{
-    int fd;
-    ErrorState *err;
-    fd = comm_open(SOCK_STREAM,
-       0,
-       Config.Addrs.tcp_outgoing,
-       0,
-       COMM_NONBLOCKING,
-       storeUrl(entry));
-    if (fd < 0) {
-       debug(50, 4) ("httpSocketOpen: %s\n", xstrerror());
-       err = errorCon(ERR_SOCKET_FAILURE, HTTP_INTERNAL_SERVER_ERROR);
-       err->xerrno = errno;
-       err->request = requestLink(request);
-       errorAppendEntry(entry, err);
-    }
-    return fd;
-}
-
 void
 httpStart(FwdState * fwdState, int fd)
 {