tm: delete obselete uri2sock function, its not compiled since almost 5 years
authorHenning Westerholt <henning.westerholt@1und1.de>
Tue, 5 Jul 2011 21:50:10 +0000 (23:50 +0200)
committerHenning Westerholt <henning.westerholt@1und1.de>
Tue, 5 Jul 2011 21:53:32 +0000 (23:53 +0200)
modules/tm/ut.h

index 4ca2751..3aa829a 100644 (file)
@@ -386,38 +386,4 @@ inline static struct dest_info *uri2dst(struct dest_info* dst,
 }
 #endif /* USE_DNS_FAILOVER */
 
-
-
-#if 0
-/*
- * Convert a URI into the corresponding sockaddr_union (address to send to) and
- *  send socket_info (socket/address from which to send)
- *  to_su is filled with the destination and the socket_info that will be 
- *  used for sending is returned.
- *  On error return 0.
- *
- *  NOTE: this function is deprecated, you should use uri2dst instead
- */
-static inline struct socket_info *uri2sock(struct sip_msg* msg, str *uri,
-                                                                       union sockaddr_union *to_su, int proto)
-{
-       struct dest_info dst;
-
-       if (uri2dst(&dst, msg, uri, proto)==0){
-               LOG(L_ERR, "ERROR: uri2sock: Can't create a dst proxy\n");
-               ser_error=E_BAD_ADDRESS;
-               return 0;
-       }
-       *to_su=dst.to; /* copy su */
-       
-       /* we use dst->send_socket since uri2dst just set it correctly*/
-       if (dst.send_sock==0) {
-               LOG(L_ERR, "ERROR: uri2sock: no corresponding socket for af %d\n", 
-                   to_su->s.sa_family);
-               ser_error = E_NO_SOCKET;
-       }
-       return dst.send_sock;
-}
-#endif
-
 #endif /* _TM_UT_H */