summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-11-08 15:21:39 -0800
committerElliott Hughes <enh@google.com>2019-11-08 15:21:39 -0800
commitd91984a890aabf0fcad333100feba87951891c69 (patch)
tree5cfc8f9e4aff4fe269691cf9d3070c177452db84 /libcutils/sockets_unix.cpp
parent0bc3f6b124c22477f052245c6461bd254b374dd3 (diff)
libcutils: remove unused socket_set_receive_timeout().
Test: treehugger Change-Id: I834762fd83bdaa3b714c7531439bf9115a82e342
Diffstat (limited to 'libcutils/sockets_unix.cpp')
-rw-r--r--libcutils/sockets_unix.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/libcutils/sockets_unix.cpp b/libcutils/sockets_unix.cpp
index 6acdcd89b..84663e675 100644
--- a/libcutils/sockets_unix.cpp
+++ b/libcutils/sockets_unix.cpp
@@ -31,13 +31,6 @@ int socket_close(int sock) {
return close(sock);
}
-int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms) {
- timeval tv;
- tv.tv_sec = timeout_ms / 1000;
- tv.tv_usec = (timeout_ms % 1000) * 1000;
- return setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
-}
-
ssize_t socket_send_buffers(cutils_socket_t sock,
const cutils_socket_buffer_t* buffers,
size_t num_buffers) {