Index: tools/android/common/net.cc |
=================================================================== |
--- tools/android/common/net.cc (revision 122347) |
+++ tools/android/common/net.cc (working copy) |
@@ -9,8 +9,6 @@ |
#include <sys/socket.h> |
#include <sys/types.h> |
-#include "base/stringprintf.h" |
- |
namespace tools { |
int DisableNagle(int socket) { |
@@ -23,18 +21,5 @@ |
return setsockopt(socket, IPPROTO_TCP, TCP_DEFER_ACCEPT, &on, sizeof(on)); |
} |
-std::string DumpBinary(const char* buffer, size_t length) { |
- std::string result = "["; |
- for (int i = 0; i < length; ++i) { |
- base::StringAppendF(&result, "%02x,", |
- static_cast<unsigned char>(buffer[i])); |
- } |
- |
- if (length) |
- result.erase(result.length() - 1); |
- |
- return result + "]"; |
-} |
- |
} // namespace tools |