diff options
author | Elliott Hughes <enh@google.com> | 2016-12-02 12:53:09 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-12-02 12:53:09 -0800 |
commit | 6e1865d17d7b96e6db858035ff49c366be9e9b0b (patch) | |
tree | 5bf5521de666d284e7c86d172d6519b9796de828 | |
parent | 65d0b34a8260238284ca5bd1b6069e051bb4f9c4 (diff) | |
download | adb-6e1865d17d7b96e6db858035ff49c366be9e9b0b.tar.gz |
Remove unused adb_set_transport.
Bug: N/A
Test: builds
Change-Id: I0824d29c080c47e1002abf3520ebed8996bcbcc6
-rw-r--r-- | adb_client.cpp | 12 | ||||
-rw-r--r-- | adb_client.h | 3 |
2 files changed, 1 insertions, 14 deletions
diff --git a/adb_client.cpp b/adb_client.cpp index 0b1ba32..ef52189 100644 --- a/adb_client.cpp +++ b/adb_client.cpp @@ -46,21 +46,11 @@ static const char* __adb_serial = NULL; static const char* __adb_server_socket_spec; -void adb_set_transport(TransportType type, const char* serial) -{ +void adb_set_transport(TransportType type, const char* serial) { __adb_transport = type; __adb_serial = serial; } -void adb_get_transport(TransportType* type, const char** serial) { - if (type) { - *type = __adb_transport; - } - if (serial) { - *serial = __adb_serial; - } -} - void adb_set_socket_spec(const char* socket_spec) { if (__adb_server_socket_spec) { LOG(FATAL) << "attempted to reinitialize adb_server_socket_spec " << socket_spec << " (was " << __adb_server_socket_spec << ")"; diff --git a/adb_client.h b/adb_client.h index d35d705..d07c1e9 100644 --- a/adb_client.h +++ b/adb_client.h @@ -40,9 +40,6 @@ bool adb_query(const std::string& service, std::string* _Nonnull result, // Set the preferred transport to connect to. void adb_set_transport(TransportType type, const char* _Nullable serial); -// Get the preferred transport to connect to. -void adb_get_transport(TransportType* _Nullable type, const char* _Nullable* _Nullable serial); - // Set the socket specification for the adb server. // This function can only be called once, and the argument must live to the end of the process. void adb_set_socket_spec(const char* _Nonnull socket_spec); |