diff options
author | Dan Albert <danalbert@google.com> | 2015-02-18 16:32:41 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-02-18 16:44:24 -0800 |
commit | 3efa676fa69c55f4d71b44d4f09e03cdf7a6fff2 (patch) | |
tree | d75336e72e0157b511122aa897d5e381306240b0 /minadbd | |
parent | 1ddd35050417b79307c5e0a989ee39d6ce2bfc1b (diff) | |
download | bootable_recovery-3efa676fa69c55f4d71b44d4f09e03cdf7a6fff2.zip bootable_recovery-3efa676fa69c55f4d71b44d4f09e03cdf7a6fff2.tar.gz bootable_recovery-3efa676fa69c55f4d71b44d4f09e03cdf7a6fff2.tar.bz2 |
Remove dead code.
This code doesn't exist in the normal adb, so it just makes it harder
to diff the two.
Change-Id: Ibb21b49bb9944c4245199536cbe88e8a107cf00d
Diffstat (limited to 'minadbd')
-rw-r--r-- | minadbd/services.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/minadbd/services.c b/minadbd/services.c index 2a52eeb..357c222 100644 --- a/minadbd/services.c +++ b/minadbd/services.c @@ -61,40 +61,6 @@ static void sideload_host_service(int sfd, void* cookie) exit(result == 0 ? 0 : 1); } -#if 0 -static void echo_service(int fd, void *cookie) -{ - char buf[4096]; - int r; - char *p; - int c; - - for(;;) { - r = read(fd, buf, 4096); - if(r == 0) goto done; - if(r < 0) { - if(errno == EINTR) continue; - else goto done; - } - - c = r; - p = buf; - while(c > 0) { - r = write(fd, p, c); - if(r > 0) { - c -= r; - p += r; - continue; - } - if((r < 0) && (errno == EINTR)) continue; - goto done; - } - } -done: - close(fd); -} -#endif - static int create_service_thread(void (*func)(int, void *), void *cookie) { stinfo *sti; @@ -135,10 +101,6 @@ int service_to_fd(const char *name) exit(3); } else if (!strncmp(name, "sideload-host:", 14)) { ret = create_service_thread(sideload_host_service, (void*)(name + 14)); -#if 0 - } else if(!strncmp(name, "echo:", 5)){ - ret = create_service_thread(echo_service, 0); -#endif } if (ret >= 0) { close_on_exec(ret); |