diff --git a/core/java/android/net/LocalSocket.java b/core/java/android/net/LocalSocket.java index e9b3f4bc6db24..b69410cf7d732 100644 --- a/core/java/android/net/LocalSocket.java +++ b/core/java/android/net/LocalSocket.java @@ -108,19 +108,6 @@ public class LocalSocket implements Closeable { checkConnected(); } - /** - * Creates a LocalSocket instances using the FileDescriptor for an already-connected - * AF_LOCAL/UNIX domain stream socket. Note: the FileDescriptor must be closed by the caller: - * closing the LocalSocket will not close it. - * - * TODO: delete this method when Bluetooth is no longer using it. - * - * @hide - */ - public static LocalSocket createConnectedLocalSocket(FileDescriptor fd) { - return new LocalSocket(fd); - } - /** * for use with LocalServerSocket.accept() */