summaryrefslogtreecommitdiffstats
path: root/adb/sockets.c
diff options
context:
space:
mode:
authorBenoit Goby <benoit@android.com>2013-02-20 15:04:53 -0800
committerBenoit Goby <benoit@android.com>2013-04-24 21:31:45 -0700
commit9470c2f1ab555311633d52e5ed8303a813061cdf (patch)
treea37585e3fa59304b3c42e0515773b8bdfa57459d /adb/sockets.c
parent49edc0acf8c78171751676af0f530d9529987075 (diff)
downloadsystem_core-9470c2f1ab555311633d52e5ed8303a813061cdf.tar.gz
system_core-9470c2f1ab555311633d52e5ed8303a813061cdf.tar.bz2
system_core-9470c2f1ab555311633d52e5ed8303a813061cdf.zip
adb: Cleanup dead code
dns_service is unused and recover_service has been replaced by adb sideload Change-Id: Ie90000d7f672e8299ee1622a9690c7371b214dc1
Diffstat (limited to 'adb/sockets.c')
-rw-r--r--adb/sockets.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/adb/sockets.c b/adb/sockets.c
index 305cb4429..f17608b62 100644
--- a/adb/sockets.c
+++ b/adb/sockets.c
@@ -844,7 +844,7 @@ static void smart_socket_close(asocket *s)
free(s);
}
-asocket *create_smart_socket(void (*action_cb)(asocket *s, const char *act))
+static asocket *create_smart_socket(void)
{
D("Creating smart socket \n");
asocket *s = calloc(1, sizeof(asocket));
@@ -852,21 +852,15 @@ asocket *create_smart_socket(void (*action_cb)(asocket *s, const char *act))
s->enqueue = smart_socket_enqueue;
s->ready = smart_socket_ready;
s->close = smart_socket_close;
- s->extra = action_cb;
- D("SS(%d): created %p\n", s->id, action_cb);
+ D("SS(%d)\n", s->id);
return s;
}
-void smart_socket_action(asocket *s, const char *act)
-{
-
-}
-
void connect_to_smartsocket(asocket *s)
{
D("Connecting to smart socket \n");
- asocket *ss = create_smart_socket(smart_socket_action);
+ asocket *ss = create_smart_socket();
s->peer = ss;
ss->peer = s;
s->ready(s);